зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
0d540df1d8
Коммит
50b84577af
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче