From c87c7f7b73df50a79c8617a309a59d19dca9fd92 Mon Sep 17 00:00:00 2001 From: "sayrer%gmail.com" Date: Tue, 12 Dec 2006 23:00:52 +0000 Subject: [PATCH] Bug 363506. Can not build nsDocumentViewer.cpp with --disable-printing. Patch by Andreas Lange . r+sr=roc git-svn-id: svn://10.0.0.236/trunk@216911 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsDocumentViewer.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; }