diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/EventContext.cpp | 4 |
2 files changed, 7 insertions, 3 deletions
@@ -1,5 +1,11 @@ 2004-11-22 Christian Persch <chpe@cvs.gnome.org> + * embed/mozilla/EventContext.cpp: + + Fix missing 'else if' and a superflous failure check. + +2004-11-22 Christian Persch <chpe@cvs.gnome.org> + * src/prefs-dialog.c: (add_system_language_entry): Fix ngettext usage. diff --git a/embed/mozilla/EventContext.cpp b/embed/mozilla/EventContext.cpp index 604a5096f..2af47d56d 100644 --- a/embed/mozilla/EventContext.cpp +++ b/embed/mozilla/EventContext.cpp @@ -476,7 +476,7 @@ nsresult EventContext::GetEventContext (nsIDOMEventTarget *EventTarget, info->context = EMBED_CONTEXT_NONE; return NS_OK; } - if (g_ascii_strcasecmp (tag.get(), "area") == 0) + else if (g_ascii_strcasecmp (tag.get(), "area") == 0) { info->context |= EMBED_CONTEXT_LINK; nsCOMPtr <nsIDOMHTMLAreaElement> area = @@ -514,8 +514,6 @@ nsresult EventContext::GetEventContext (nsIDOMEventTarget *EventTarget, return NS_ERROR_FAILURE; SetStringProperty ("background_image", bgimg.get()); - if (NS_FAILED (rv)) - return NS_ERROR_FAILURE; has_background = PR_TRUE; } |