From 62986c3d823d41f42304dd4bcc60ff16daff1731 Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Wed, 14 Aug 2019 18:58:16 +0200 Subject: Set text field modified on edit in Impress To avoid not saved changes when user enters text field and then closes the browser. Change-Id: Iee06392eedcf8c1875017dbfb55552059f94bba3 Reviewed-on: https://gerrit.libreoffice.org/77497 Tested-by: Jenkins CollaboraOffice Reviewed-by: Andras Timar --- sd/source/ui/func/futext.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sd/source/ui/func/futext.cxx b/sd/source/ui/func/futext.cxx index b2ca0d1111b1..4c3ff9338ec5 100644 --- a/sd/source/ui/func/futext.cxx +++ b/sd/source/ui/func/futext.cxx @@ -70,6 +70,7 @@ #include #include #include +#include using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -201,6 +202,8 @@ void FuText::DoExecute( SfxRequest& ) SdrViewEvent aVEvt; mpView->PickAnything(aMEvt, SdrMouseEventKind::BUTTONDOWN, aVEvt); mpView->MarkObj(aVEvt.pRootObj, pPV); + if (comphelper::LibreOfficeKit::isActive() && mpViewShell && mpViewShell->GetDocSh()) + mpViewShell->GetDocSh()->SetModified(); mxTextObj.reset( dynamic_cast< SdrTextObj* >( aVEvt.pObj ) ); } -- cgit