diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2016-09-12 10:49:28 +0200 |
---|---|---|
committer | Marco Cecchetti <marco.cecchetti@collabora.com> | 2016-09-12 10:49:28 +0200 |
commit | 439255b00359060708e4ef969370a67fc94cea89 (patch) | |
tree | e86f82dfd416428a54f65a0cd1967c51dafebdf4 | |
parent | bbae556d12e4edf7795b0b5643df77fd8cdbdacd (diff) |
gtktiledviewer - Calc fix: selection handlers were not removed
Change-Id: I2b4ad4dbf281458d0994eff176a2f62e20fb603b
-rw-r--r-- | libreofficekit/source/gtk/lokdocview.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx index 1f7d33007117..646823093650 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)); |