[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - desktop/source

Mert Tumer (via logerrit) logerrit at kemper.freedesktop.org
Fri Oct 1 17:46:21 UTC 2021


 desktop/source/lib/init.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e3f45fdc1e6547b35ab69a01e57ee7c926b8b7e7
Author:     Mert Tumer <mert.tumer at collabora.com>
AuthorDate: Fri Oct 1 15:34:33 2021 +0300
Commit:     Mert Tumer <mert.tumer at 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.tumer at collabora.com>
    Change-Id: I2a09ac5a664c1ff26790aa776d871ac34c3d99dd
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122919
    Reviewed-by: Szymon Kłos <szymon.klos at collabora.com>
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at 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;
         }


More information about the Libreoffice-commits mailing list