fdo#43705: fix incomplete updating of the page preview pane in Draw

This regression was introduced in f215333002.
As stated in PageObjectPainter::PaintPageObject:
  "The page object layouter is quite volatile."
The rest of usages of mpPageObjectLayouter looks sane, but who knows...
This commit is contained in:
Ivan Timofeev 2012-01-22 14:53:11 +04:00
parent a865eee6e7
commit 799f2de5d1

View file

@ -167,6 +167,7 @@ void PageObjectPainter::PaintPageObject (
void PageObjectPainter::NotifyResize (const bool bForce)
{
mpPageObjectLayouter = mrLayouter.GetPageObjectLayouter();
if (bForce || ! mpPageObjectLayouter)
InvalidateBitmaps();
else