[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.1' - libreofficekit/source

Marco Cecchetti marco.cecchetti at collabora.com
Mon Sep 12 08:52:40 UTC 2016


 libreofficekit/source/gtk/lokdocview.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 439255b00359060708e4ef969370a67fc94cea89
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
Date:   Mon Sep 12 10:49:28 2016 +0200

    gtktiledviewer - Calc fix: selection handlers were not removed
    
    Change-Id: I2b4ad4dbf281458d0994eff176a2f62e20fb603b

diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 1f7d330..6468230 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -1038,6 +1038,9 @@ payloadToRectangles(LOKDocView* pDocView, const char* pPayload)
 {
     std::vector<GdkRectangle> aRet;
 
+    if (g_strcmp0(pPayload, "EMPTY") == 0)
+       return aRet;
+
     gchar** ppRectangles = g_strsplit(pPayload, "; ", 0);
     for (gchar** ppRectangle = ppRectangles; *ppRectangle; ++ppRectangle)
         aRet.push_back(payloadToRectangle(pDocView, *ppRectangle));


More information about the Libreoffice-commits mailing list