diff --git a/mozilla/layout/base/nsDocumentViewer.cpp b/mozilla/layout/base/nsDocumentViewer.cpp index cac9e05a0ab..f69f3578606 100644 --- a/mozilla/layout/base/nsDocumentViewer.cpp +++ b/mozilla/layout/base/nsDocumentViewer.cpp @@ -1871,10 +1871,12 @@ DocumentViewerImpl::SetBounds(const nsRect& aBounds) if (mPreviousViewer) mPreviousViewer->SetBounds(aBounds); +#if defined(NS_PRINTING) && defined(NS_PRINT_PREVIEW) if (GetIsPrintPreview()) { mPrintEngine->GetPrintPreviewWindow()->Resize(aBounds.x, aBounds.y, aBounds.width, aBounds.height, PR_FALSE); } +#endif return NS_OK; }