diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-06-04 11:41:30 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-06-04 19:34:13 +0000 |
commit | 01f77389b473a37a7b8e0e46a1e49a56dac478c3 (patch) | |
tree | 0643dddf070a57211eee34521e8bdb29872c95ff | |
parent | 123dc8f836afd108ea69804546116f17438a7861 (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)
(cherry picked from commit 84c9d54eb3c007066908794a1443dca6670a3922)
Reviewed-on: https://gerrit.libreoffice.org/16084
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r-- | sw/source/core/view/vprint.cxx | 5 |
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); |