aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyWrapper.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@.gnome.org>2003-08-15 00:44:35 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-08-15 00:44:35 +0800
commitcef2c42a07d633d2431872c9a8929f28a052c6f3 (patch)
tree5165fff1882ef7d43178e7328d2cf51d01e143ca /embed/mozilla/EphyWrapper.cpp
parent83d079f0b909106f3c3da16fd62a7cdfdf6b07e2 (diff)
downloadgsoc2013-epiphany-cef2c42a07d633d2431872c9a8929f28a052c6f3.tar
gsoc2013-epiphany-cef2c42a07d633d2431872c9a8929f28a052c6f3.tar.gz
gsoc2013-epiphany-cef2c42a07d633d2431872c9a8929f28a052c6f3.tar.bz2
gsoc2013-epiphany-cef2c42a07d633d2431872c9a8929f28a052c6f3.tar.lz
gsoc2013-epiphany-cef2c42a07d633d2431872c9a8929f28a052c6f3.tar.xz
gsoc2013-epiphany-cef2c42a07d633d2431872c9a8929f28a052c6f3.tar.zst
gsoc2013-epiphany-cef2c42a07d633d2431872c9a8929f28a052c6f3.zip
Make print preview exit code safer.
2003-08-14 Marco Pesenti Gritti <marco@.gnome.org> * embed/mozilla/EphyWrapper.cpp: * src/ppview-toolbar.c: (toolbar_cmd_ppv_close): Make print preview exit code safer.
Diffstat (limited to 'embed/mozilla/EphyWrapper.cpp')
-rw-r--r--embed/mozilla/EphyWrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed/mozilla/EphyWrapper.cpp b/embed/mozilla/EphyWrapper.cpp
index 3b9856716..d9de1d54d 100644
--- a/embed/mozilla/EphyWrapper.cpp
+++ b/embed/mozilla/EphyWrapper.cpp
@@ -211,7 +211,7 @@ nsresult EphyWrapper::PrintPreviewClose (void)
if (NS_FAILED(rv) || !print) return NS_ERROR_FAILURE;
rv = print->GetDoingPrintPreview(&isPreview);
- if (isPreview == PR_TRUE)
+ if (NS_SUCCEEDED (rv) && isPreview == PR_TRUE)
{
rv = print->ExitPrintPreview();
}