summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMert Tumer <mert.tumer@collabora.com>2021-10-01 15:34:33 +0300
committerMert Tumer <mert.tumer@collabora.com>2021-10-01 19:45:46 +0200
commite3f45fdc1e6547b35ab69a01e57ee7c926b8b7e7 (patch)
tree75081cf142b093a62827a4996d093ff8b3c3fcb8 /desktop
parent89aacf55ab00d485f2dc84879bec4b2fe1eddf00 (diff)
lok: Fix graphicselection INPLACE msg is filtered out
INPLACE message is not at the beginning, search it instead Signed-off-by: Mert Tumer <mert.tumer@collabora.com> Change-Id: I2a09ac5a664c1ff26790aa776d871ac34c3d99dd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122919 Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index dab77ee9aa8b..7e92549a7cb9 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1673,7 +1673,7 @@ void CallbackFlushHandler::queue(const int type, const char* data)
// remove only selection ranges and 'EMPTY' messages
// always send 'INPLACE' and 'INPLACE EXIT' messages
removeAll(type, [payload] (const CallbackData& elemData)
- { return (elemData.PayloadString[0] != 'I'); });
+ { return (elemData.PayloadString.find("INPLACE") == std::string::npos); });
}
break;
}