gtktiledviewer - Calc fix: selection handlers were not removed

Change-Id: I2b4ad4dbf281458d0994eff176a2f62e20fb603b
This commit is contained in:
Marco Cecchetti
2016-09-12 10:49:28 +02:00
parent 1013587c03
commit b7b62d4a59

View File

@@ -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));