aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/EphyBrowser.cpp2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c1ae202ab..8b738c007 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,12 @@
* embed/mozilla/EphyBrowser.cpp:
+ One more NS_ENSURE_TRUE.
+
+2004-05-11 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/mozilla/EphyBrowser.cpp:
+
Changed back to NS_ENSURE_TRUE as per discussion in bug #142184.
2004-05-11 Christian Persch <chpe@cvs.gnome.org>
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp
index 1ca7d44e9..af0702ba1 100644
--- a/embed/mozilla/EphyBrowser.cpp
+++ b/embed/mozilla/EphyBrowser.cpp
@@ -383,7 +383,7 @@ nsresult EphyBrowser::GoToHistoryIndex (PRInt16 index)
nsresult EphyBrowser::SetZoom (float aZoom, PRBool reflow)
{
- if (!mWebBrowser) return NS_ERROR_FAILURE;
+ NS_ENSURE_TRUE (mWebBrowser, NS_ERROR_FAILURE);
if (reflow)
{