desktop/source/lib/init.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit e3f45fdc1e6547b35ab69a01e57ee7c926b8b7e7 Author: Mert Tumer <mert.tu...@collabora.com> AuthorDate: Fri Oct 1 15:34:33 2021 +0300 Commit: Mert Tumer <mert.tu...@collabora.com> CommitDate: Fri Oct 1 19:45:46 2021 +0200 lok: Fix graphicselection INPLACE msg is filtered out INPLACE message is not at the beginning, search it instead Signed-off-by: Mert Tumer <mert.tu...@collabora.com> Change-Id: I2a09ac5a664c1ff26790aa776d871ac34c3d99dd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122919 Reviewed-by: Szymon Kłos <szymon.k...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> 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; }