summaryrefslogtreecommitdiff
path: root/sd/source/ui/docshell/docshel4.cxx
diff options
context:
space:
mode:
authorUmang Jain <mailumangjain@gmail.com>2017-03-14 02:54:33 +0530
committerMichael Stahl <mstahl@redhat.com>2017-03-27 19:54:58 +0000
commit29c066ee3c0bf307ca14851dd35e314ab1a3f20b (patch)
tree9a01bf9153ff83a10be18eb45468f6077f3d1c0e /sd/source/ui/docshell/docshel4.cxx
parent2753797c98d56a51666b3a6c75e1eb43495c5134 (diff)
Resolves tdf#106321: End text edit mode before exporting
Change-Id: I5b6c4428d7ab2f230d57402edffa274aceac097f Reviewed-on: https://gerrit.libreoffice.org/35150 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
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 );