summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/view/vprint.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/source/core/view/vprint.cxx b/sw/source/core/view/vprint.cxx
index 7f2b520d73ce..321b1f5ae7e5 100644
--- a/sw/source/core/view/vprint.cxx
+++ b/sw/source/core/view/vprint.cxx
@@ -535,9 +535,10 @@ bool SwViewShell::PrintOrPDFExport(
SwPaintQueue::Repaint();
- if (nPostItMode == POSTITS_INMARGINS)
+ SwPostItMgr *pPostItManager = (nPostItMode == POSTITS_INMARGINS) ?
+ pShell->GetPostItMgr() : NULL;
+ if (pPostItManager)
{
- SwPostItMgr *pPostItManager = pShell->GetPostItMgr();
pPostItManager->CalcRects();
pPostItManager->LayoutPostIts();
pPostItManager->DrawNotesForPage(pOutDev, nPage-1);