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 11:04:25 +0200 |
commit | b7b62d4a59bb274dffed93489068ceb3342f717e (patch) | |
tree | 7e49ad72cb37f9396a9c1e98d1aaa657f6db083c | |
parent | 1013587c03d168b54349b5d47c8359e97acc0ad5 (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 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<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)); |