From 29c066ee3c0bf307ca14851dd35e314ab1a3f20b Mon Sep 17 00:00:00 2001 From: Umang Jain Date: Tue, 14 Mar 2017 02:54:33 +0530 Subject: Resolves tdf#106321: End text edit mode before exporting Change-Id: I5b6c4428d7ab2f230d57402edffa274aceac097f Reviewed-on: https://gerrit.libreoffice.org/35150 Reviewed-by: Michael Stahl Tested-by: Michael Stahl --- sd/source/ui/docshell/docshel4.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sd/source/ui/docshell/docshel4.cxx') 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 ); -- cgit