Bug 363506. Can not build nsDocumentViewer.cpp with --disable-printing. Patch by Andreas Lange <mozilla@lange.cx>. r+sr=roc

This commit is contained in:
sayrer%gmail.com 2006-12-12 23:00:52 +00:00
Родитель 0d540df1d8
Коммит 50b84577af
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -1871,10 +1871,12 @@ DocumentViewerImpl::SetBounds(const nsRect& aBounds)
if (mPreviousViewer) if (mPreviousViewer)
mPreviousViewer->SetBounds(aBounds); mPreviousViewer->SetBounds(aBounds);
#if defined(NS_PRINTING) && defined(NS_PRINT_PREVIEW)
if (GetIsPrintPreview()) { if (GetIsPrintPreview()) {
mPrintEngine->GetPrintPreviewWindow()->Resize(aBounds.x, aBounds.y, aBounds.width, aBounds.height, mPrintEngine->GetPrintPreviewWindow()->Resize(aBounds.x, aBounds.y, aBounds.width, aBounds.height,
PR_FALSE); PR_FALSE);
} }
#endif
return NS_OK; return NS_OK;
} }