summaryrefslogtreecommitdiff
path: root/sd/source/ui/docshell/docshel4.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/docshell/docshel4.cxx')
-rw-r--r--sd/source/ui/docshell/docshel4.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx
index 71a96c2705ab..00b7d463329b 100644
--- a/sd/source/ui/docshell/docshel4.cxx
+++ b/sd/source/ui/docshell/docshel4.cxx
@@ -644,6 +644,13 @@ bool DrawDocShell::ConvertTo( SfxMedium& rMedium )
mpDoc->SetSwapGraphicsMode( SdrSwapGraphicsMode::TEMP );
+ if ( mpViewShell )
+ {
+ ::sd::View* pView = mpViewShell->GetView();
+ if ( pView->IsTextEdit() )
+ pView->SdrEndTextEdit();
+ }
+
bRet = xFilter->Export();
if( !bRet )
mpDoc->SetSwapGraphicsMode( nOldSwapMode );