зеркало из https://github.com/mozilla/pjs.git
Changed StartDocument/EndDocument to use the correct device context
This commit is contained in:
Родитель
f5c865a425
Коммит
5319243b36
|
@ -536,7 +536,7 @@ NS_IMETHODIMP DocumentViewerImpl::Print(void)
|
|||
ps->Init(mDocument, cx, vm, ss);
|
||||
|
||||
//lay it out...
|
||||
dx->BeginDocument();
|
||||
newdx->BeginDocument();
|
||||
ps->InitialReflow(width, height);
|
||||
|
||||
// Ask the page sequence frame to print all the pages
|
||||
|
@ -547,7 +547,7 @@ NS_IMETHODIMP DocumentViewerImpl::Print(void)
|
|||
ps->GetPageSequenceFrame(pageSequence);
|
||||
NS_ASSERTION(nsnull != pageSequence, "no page sequence frame");
|
||||
pageSequence->Print(*cx, options, nsnull);
|
||||
dx->EndDocument();
|
||||
newdx->EndDocument();
|
||||
|
||||
NS_RELEASE(ps);
|
||||
NS_RELEASE(vm);
|
||||
|
|
Загрузка…
Ссылка в новой задаче