diff options
author | Thomas Lange [tl] <tl@openoffice.org> | 2010-02-17 11:59:30 +0100 |
---|---|---|
committer | Thomas Lange [tl] <tl@openoffice.org> | 2010-02-17 11:59:30 +0100 |
commit | c7cb3380c8d14795e6c38bfee6785c1d6a2ed4a4 (patch) | |
tree | d98cfdd9654e06d8bf6566bfe36a59ba9aac061b /sw/source/ui/uno | |
parent | b4b7707777a42d567709f53f265f6e4353012afd (diff) |
#i108805# patch for crash applied
Diffstat (limited to 'sw/source/ui/uno')
-rwxr-xr-x | sw/source/ui/uno/unotxdoc.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/source/ui/uno/unotxdoc.cxx b/sw/source/ui/uno/unotxdoc.cxx index cd2d5f7945..19da482149 100755 --- a/sw/source/ui/uno/unotxdoc.cxx +++ b/sw/source/ui/uno/unotxdoc.cxx @@ -38,6 +38,7 @@ #include <vcl/print.hxx> #include <sfx2/viewfrm.hxx> #include <sfx2/sfxbasecontroller.hxx> +#include <sfx2/docfile.hxx> #include <toolkit/helper/vclunohelper.hxx> #include <toolkit/awt/vclxdevice.hxx> #include <cmdid.h> @@ -3115,6 +3116,12 @@ void SAL_CALL SwXTextDocument::render( { lcl_DisposeView( m_pHiddenViewFrame, pDocShell ); m_pHiddenViewFrame = 0; + + // prevent crash described in #i108805 + SwDocShell *pRenderDocShell = pDoc->GetDocShell(); + SfxItemSet *pSet = pRenderDocShell->GetMedium()->GetItemSet(); + pSet->Put( SfxBoolItem( SID_HIDDEN, sal_False ) ); + } } } |