From b7b62d4a59bb274dffed93489068ceb3342f717e Mon Sep 17 00:00:00 2001 From: Marco Cecchetti Date: Mon, 12 Sep 2016 10:49:28 +0200 Subject: [PATCH] gtktiledviewer - Calc fix: selection handlers were not removed Change-Id: I2b4ad4dbf281458d0994eff176a2f62e20fb603b --- libreofficekit/source/gtk/lokdocview.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index 06993223bf95..e2ea5ca2133f 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 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));