Kaydet (Commit) eea5ac79 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#84483 postit layout not available in print preview mode

for the moment don't crash anyway, maybe we can rearrange matters
to make this possible.

Change-Id: I2dc9831e5b026004b2f7603e618330154dbd6d1b
üst 1ba1cbe4
...@@ -537,9 +537,10 @@ bool SwViewShell::PrintOrPDFExport( ...@@ -537,9 +537,10 @@ bool SwViewShell::PrintOrPDFExport(
SwPaintQueue::Repaint(); SwPaintQueue::Repaint();
if (nPostItMode == POSTITS_INMARGINS) SwPostItMgr *pPostItManager = (nPostItMode == POSTITS_INMARGINS) ?
pShell->GetPostItMgr() : NULL;
if (pPostItManager)
{ {
SwPostItMgr *pPostItManager = pShell->GetPostItMgr();
pPostItManager->CalcRects(); pPostItManager->CalcRects();
pPostItManager->LayoutPostIts(); pPostItManager->LayoutPostIts();
pPostItManager->DrawNotesForPage(pOutDev, nPage-1); pPostItManager->DrawNotesForPage(pOutDev, nPage-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment