[Libreoffice-commits] core.git: libreofficekit/source

Marco Cecchetti marco.cecchetti at collabora.com
Mon Sep 12 09:06:08 UTC 2016


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

New commits:
commit b7b62d4a59bb274dffed93489068ceb3342f717e
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 0699322..e2ea5ca 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -1054,6 +1054,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