sw/source/ui/misc/swruler.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 8ee024894e188d7f37807f170e118168db0a45e5 Author: Tor Lillqvist <[email protected]> Date: Fri Dec 20 14:56:33 2013 +0200 Prevent occasional crash I came across the crash by accident when checking how it works to have multiple windows showing the same document. Pasting in lots of text and then quickly telling LO to exit with Cmd-Q caused a crash here as GetPostItMgr() returned NULL. Change-Id: Ib9e636df0832a679a1d81fa3856ea0a7105a69c3 (cherry picked from commit 0eb1ef39084a978e8c2bec977ebabf6708f0c073) (cherry picked from commit f35f0e1cafffb636653f24cab489d208d2851787) Reviewed-on: https://gerrit.libreoffice.org/13243 Reviewed-by: Michael Stahl <[email protected]> Reviewed-by: Eike Rathke <[email protected]> Reviewed-by: Christian Lohmaier <[email protected]> Tested-by: Christian Lohmaier <[email protected]> diff --git a/sw/source/ui/misc/swruler.cxx b/sw/source/ui/misc/swruler.cxx index fa396d0..b1035c9 100644 --- a/sw/source/ui/misc/swruler.cxx +++ b/sw/source/ui/misc/swruler.cxx @@ -56,7 +56,8 @@ void SwCommentRuler::Paint( const Rectangle& rRect ) { SvxRuler::Paint( rRect ); // Don't draw if there is not any note - if ( mpViewShell->GetPostItMgr()->HasNotes() ) + if ( mpViewShell->GetPostItMgr() + && mpViewShell->GetPostItMgr()->HasNotes() ) DrawCommentControl(); } _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
