diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-05-04 09:15:25 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-05-06 16:40:05 +0200 |
commit | 262b1612180f2420e7a461df0eca1c6cb6a7ce43 (patch) | |
tree | 67a94e501483c0f5e4cf2ebb951c0bce03aece4f /starmath | |
parent | 75cb50e5675d46a104ccd932642404e1badc1ad6 (diff) |
tdf#141930 document set as unmodified if editengine didn't modify on keyevent
this appears to have always happened for cursor keys, and since
commit 0154f04e8c64df937b793c73ac58d553637f324f
Author: Caolán McNamara <caolanm@redhat.com>
Date: Wed Feb 24 14:32:21 2021 +0000
Resolves: rhbz#1931423 start update timer in IM events as well as keyevents
also happens on Input Engine events which don't cause changes
Change-Id: Ic5cdd9ef4f1bed1cc2b2c17fc847f196a9c6e23a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114930
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/edit.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/edit.cxx b/starmath/source/edit.cxx index 99ce7c008622..152c269b1cc4 100644 --- a/starmath/source/edit.cxx +++ b/starmath/source/edit.cxx @@ -513,8 +513,8 @@ void SmEditWindow::UserPossiblyChangedText() // cursor travelling and such things... SmDocShell *pDocShell = GetDoc(); EditEngine *pEditEngine = GetEditEngine(); - if (pDocShell && pEditEngine) - pDocShell->SetModified(pEditEngine->IsModified()); + if (pDocShell && pEditEngine && pEditEngine->IsModified()) + pDocShell->SetModified(true); aModifyIdle.Start(); } |