diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/EphyWrapper.cpp | 2 |
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(); } |