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-12-10 14:49:58 +0100 |
commit | 481e686a66e550229ec0b600a785452f0d753342 (patch) | |
tree | c83290b793bcfcfb95b8ebf187ff57bce3b75fd4 /sd/source | |
parent | 24c13a0675cd0b6568d2da18293ab16535eec24f (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
Reviewed-on: https://gerrit.libreoffice.org/77504
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/82086
Tested-by: Jenkins
Diffstat (limited to 'sd/source')
-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 30aa80e08164..3523a5efef69 100644 --- a/sd/source/ui/func/futext.cxx +++ b/sd/source/ui/func/futext.cxx @@ -63,6 +63,7 @@ #include <DrawDocShell.hxx> #include <strings.hrc> #include <pres.hxx> +#include <comphelper/lok.hxx> using namespace ::com::sun::star; using namespace ::com::sun::star::uno; @@ -194,6 +195,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 ) ); } |