Bug 1804017 - Fix asserts when ReflowPrintObject is called multiple times on the same print job r=emilio

Differential Revision: https://phabricator.services.mozilla.com/D163877
This commit is contained in:
Emily McDonough 2022-12-06 02:42:23 +00:00
parent f60a47ad27
commit e9b7eac405

View File

@ -1391,8 +1391,8 @@ nsresult nsPrintJob::ReflowPrintObject(const UniquePtr<nsPrintObject>& aPO) {
}
break;
}
mMaybeCSSPageLandscape.emplace(maybeOrientation.value() ==
StylePageSizeOrientation::Landscape);
mMaybeCSSPageLandscape =
Some(maybeOrientation.value() == StylePageSizeOrientation::Landscape);
aPO->mPresContext->SetPageSize(pageSize);
}
}