diff options
author | Christian Persch <chpe+gnomebugz@stud.uni-saarland.de> | 2003-05-06 19:49:35 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <mpeseng@src.gnome.org> | 2003-05-06 19:49:35 +0800 |
commit | 468c744c0c5efde0aa7bbc179bd0bba784c908a5 (patch) | |
tree | 80c6389c8d4c85d7948e15af107589c41b4da1c4 | |
parent | 0844abeea1ba193d4c9aa9afdbd9aaddba459d17 (diff) | |
download | gsoc2013-epiphany-468c744c0c5efde0aa7bbc179bd0bba784c908a5.tar gsoc2013-epiphany-468c744c0c5efde0aa7bbc179bd0bba784c908a5.tar.gz gsoc2013-epiphany-468c744c0c5efde0aa7bbc179bd0bba784c908a5.tar.bz2 gsoc2013-epiphany-468c744c0c5efde0aa7bbc179bd0bba784c908a5.tar.lz gsoc2013-epiphany-468c744c0c5efde0aa7bbc179bd0bba784c908a5.tar.xz gsoc2013-epiphany-468c744c0c5efde0aa7bbc179bd0bba784c908a5.tar.zst gsoc2013-epiphany-468c744c0c5efde0aa7bbc179bd0bba784c908a5.zip |
Check for NULL PresContext.
2003-05-06 Christian Persch <chpe+gnomebugz@stud.uni-saarland.de>
* embed/mozilla/EphyWrapper.cpp: (EphyWrapper::SetZoomOnDocshell):
Check for NULL PresContext.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | embed/mozilla/EphyWrapper.cpp | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2003-05-06 Christian Persch <chpe+gnomebugz@stud.uni-saarland.de> + + * embed/mozilla/EphyWrapper.cpp: (EphyWrapper::SetZoomOnDocshell): + + Check for NULL PresContext. + 2003-05-06 Marco Pesenti Gritti <marco@it.gnome.org> * embed/mozilla/mozilla-embed-single.cpp: diff --git a/embed/mozilla/EphyWrapper.cpp b/embed/mozilla/EphyWrapper.cpp index b5ae3a24a..7268c4a69 100644 --- a/embed/mozilla/EphyWrapper.cpp +++ b/embed/mozilla/EphyWrapper.cpp @@ -356,7 +356,7 @@ nsresult EphyWrapper::SetZoomOnDocshell (float aZoom, nsIDocShell *DocShell) nsCOMPtr<nsIPresContext> PresContext; result = DocShell->GetPresContext (getter_AddRefs(PresContext)); - if (NS_FAILED(result)) return NS_ERROR_FAILURE; + if (NS_FAILED(result) || !PresContext) return NS_ERROR_FAILURE; nsCOMPtr<nsIDeviceContext> DeviceContext; result = PresContext->GetDeviceContext (getter_AddRefs(DeviceContext)); |