summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-04 11:41:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-06-04 14:06:12 +0100
commit84c9d54eb3c007066908794a1443dca6670a3922 (patch)
tree2e6a1c9acc208a253e673f9e673c56a7c51d3213
parent0856fa11ec5319231c3927a2ba595ab500262dc1 (diff)
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 (cherry picked from commit eea5ac7910d61796d77fe2cc03681dd24bb7dd95)
-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 b674f9299127..f2997ce7f213 100644
--- a/sw/source/core/view/vprint.cxx
+++ b/sw/source/core/view/vprint.cxx
@@ -537,9 +537,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);