sd/source/ui/func/futext.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit c6df1c5bbfdfd94e5deb5a21eea42d10273b51e9 Author: Szymon Kłos <szymon.k...@collabora.com> AuthorDate: Wed Aug 14 18:58:16 2019 +0200 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Tue Aug 27 12:26:29 2019 +0200
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/77504 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/sd/source/ui/func/futext.cxx b/sd/source/ui/func/futext.cxx index d68d55e09ec4..7acef29be39a 100644 --- a/sd/source/ui/func/futext.cxx +++ b/sd/source/ui/func/futext.cxx @@ -69,6 +69,7 @@ #include <strings.hrc> #include <pres.hxx> #include <optsitem.hxx> +#include <comphelper/lok.hxx> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -200,6 +201,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 ) ); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits