diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2019-08-14 18:58:16 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2019-08-27 12:26:15 +0200 |
commit | c562074819d85d4bad9d8f9c4d78163f2b739d37 (patch) | |
tree | 7a5c0e72c2fe37227f5c62d3bd803b889b1387c2 | |
parent | ff48096467a4b802e7d1a0055dc35a490715401e (diff) |
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
(cherry picked from commit d4a2b09216f00a84249b0fc4474302b7091182bd)
Reviewed-on: https://gerrit.libreoffice.org/77503
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r-- | sd/source/ui/func/futext.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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 <strings.hrc> #include <pres.hxx> #include <optsitem.hxx> +#include <comphelper/lok.hxx> 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 ) ); } |