diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-01-04 22:27:22 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-01-05 00:04:12 +0100 |
commit | 36371917258bd66c29e1ac15f68df3aea0288151 (patch) | |
tree | 414065bc098c6858d647e5805dc60aea6fa04f19 /sw | |
parent | c8f8a2d3f9867850ad7effb585ff6414815c73ce (diff) |
rhbz#890080: crash in SwXTextDocument::getRendererCount
No idea how to reproduce it; pSwView is checked before use except here.
(possibly regression from 2f9f480b22f2fff59d9c48b4b46706c3d5223e66)
Change-Id: Ia7667e879a6944e084a45c06133efc1ac2d8b3c0
(cherry picked from commit 1c52268a5bc6d79c6ee1344e4e341c7e3820d4e0)
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/uno/unotxdoc.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx index 2c26127bb11f..ceca2337472a 100644 --- a/sw/source/ui/uno/unotxdoc.cxx +++ b/sw/source/ui/uno/unotxdoc.cxx @@ -2533,7 +2533,10 @@ sal_Int32 SAL_CALL SwXTextDocument::getRendererCount( SwViewOption aOpt( *pViewShell->GetViewOptions() ); aOpt.setBrowseMode( false ); pViewShell->ApplyViewOptions( aOpt ); - pSwView->RecheckBrowseMode(); + if (pSwView) + { + pSwView->RecheckBrowseMode(); + } } // reformating the document for printing will show the changes in the view |