Bug 424000 - Crash [@ nsPrintEngine::ReflowPrintObject], r=roc

This commit is contained in:
Olli Pettay 2010-04-19 01:17:41 +03:00
parent bc56cd9078
commit 9367a1667f

View File

@ -2061,6 +2061,7 @@ nsPrintEngine::ReflowPrintObject(nsPrintObject * aPO)
// the furthest
if (mPrt->mShrinkToFit && documentIsTopLevel) {
nsIPageSequenceFrame* pageSequence = aPO->mPresShell->GetPageSequenceFrame();
NS_ENSURE_STATE(pageSequence);
pageSequence->GetSTFPercent(aPO->mShrinkRatio);
}