diff options
author | Umang Jain <mailumangjain@gmail.com> | 2017-03-14 02:54:33 +0530 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2017-03-27 19:54:58 +0000 |
commit | 29c066ee3c0bf307ca14851dd35e314ab1a3f20b (patch) | |
tree | 9a01bf9153ff83a10be18eb45468f6077f3d1c0e | |
parent | 2753797c98d56a51666b3a6c75e1eb43495c5134 (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>
-rw-r--r-- | sd/source/ui/docshell/docshel4.cxx | 7 |
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 ); |