Bug 363506. Can not build nsDocumentViewer.cpp with --disable-printing. Patch by Andreas Lange <mozilla@lange.cx>. r+sr=roc
git-svn-id: svn://10.0.0.236/trunk@216911 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user