aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--embed/mozilla/EphyWrapper.cpp1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index ae0d4c8d0..46a582f40 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-08-23 Christian Persch <chpe@cvs.gnome.org>
+
+ * embed/mozilla/EphyWrapper.cpp: (SetZoomOnDocshell):
+
+ Add extra bogosity check, ported from galeon.
+
2003-08-23 Marco Pesenti Gritti <marco@gnome.org>
* configure.in:
diff --git a/embed/mozilla/EphyWrapper.cpp b/embed/mozilla/EphyWrapper.cpp
index 03514d21d..6fc76a840 100644
--- a/embed/mozilla/EphyWrapper.cpp
+++ b/embed/mozilla/EphyWrapper.cpp
@@ -353,6 +353,7 @@ nsresult EphyWrapper::SetZoomOnDocshell (float aZoom, nsIDocShell *DocShell)
nsCOMPtr<nsIDeviceContext> DeviceContext;
result = PresContext->GetDeviceContext (getter_AddRefs(DeviceContext));
+ if (NS_FAILED(result) || !DeviceContext) return NS_ERROR_FAILURE;
return DeviceContext->SetTextZoom (aZoom);
}