diff options
-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)); |