diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2022-06-28 09:42:17 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-08-31 08:37:06 +0200 |
commit | fc856cd46ac475222772395c522dc34058bd89b9 (patch) | |
tree | fa3cfc29296cae2dcfad8828cf7915f0109b1503 /test/source | |
parent | 03a846a6361a5dd29a12bb42cb5cbebbf725806b (diff) |
lok: make sure flushPendingLOKInvalidateTiles() is called
SwViewShellImp::AddPendingLOKInvalidation() collects invalidations,
but this was relying on something eventually calling
flushPendingLOKInvalidateTiles(), which wasn't guaranteed.
If e.g. a spellchecker caused an invalidation from in idle callback
and nothing else changed, then the LOK callback handling code
didn't know there was something pending. So add an explicit
call to ensure to notify about these pending invalidations.
Change-Id: I0a9cb0d5aba2fdbbac126cd8a4a3412bef1cab25
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136533
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'test/source')
-rw-r--r-- | test/source/lokcallback.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/source/lokcallback.cxx b/test/source/lokcallback.cxx index 440aae461eee..e9d61486ee0f 100644 --- a/test/source/lokcallback.cxx +++ b/test/source/lokcallback.cxx @@ -106,6 +106,12 @@ void TestLokCallbackWrapper::libreOfficeKitViewUpdatedCallbackPerViewId(int nTyp startTimer(); } +void TestLokCallbackWrapper::libreOfficeKitViewAddPendingInvalidateTiles() +{ + // Invoke() will call flushPendingLOKInvalidateTiles(). + startTimer(); +} + void TestLokCallbackWrapper::discardUpdatedTypes(int nType, int nViewId) { // If a callback is called directly with an event, drop the updated flag for it, since |