mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 14:52:16 +00:00
Instead of at the end of of the PO it needs to be in the middel of reflow
where we bail out earlier, basically same fix different location Bug 149710 r=dcone sr=jst
This commit is contained in:
parent
0bf43fd793
commit
c16e250910
@ -2831,6 +2831,7 @@ nsPrintEngine::ReflowPrintObject(nsPrintObject * aPO, PRBool aDoCalcShrink)
|
||||
|
||||
if (!adjRect.width || !adjRect.height || !width || !height) {
|
||||
aPO->mDontPrint = PR_TRUE;
|
||||
aPO->mPresShell->EndObservingDocument();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
@ -2831,6 +2831,7 @@ nsPrintEngine::ReflowPrintObject(nsPrintObject * aPO, PRBool aDoCalcShrink)
|
||||
|
||||
if (!adjRect.width || !adjRect.height || !width || !height) {
|
||||
aPO->mDontPrint = PR_TRUE;
|
||||
aPO->mPresShell->EndObservingDocument();
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user