summaryrefslogtreecommitdiff
path: root/libreofficekit
diff options
context:
space:
mode:
authorPranav Kant <pranavk@gnome.org>2015-06-06 00:36:54 +0530
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-06-09 10:44:23 +0200
commit085f31a435eed43e3b7927e10309ddd00fb5b9a5 (patch)
tree4e8e18635259ddc47db51e4fcb5c7a6a2b012782 /libreofficekit
parent1483643ba5930474b9eab73b723a775dd3c8c850 (diff)
lokdocview: fix render calls after LOK callbacks
Change-Id: Ib33f0e1dcf257350be1e2cf6c49cd92494472a55
Diffstat (limited to 'libreofficekit')
-rw-r--r--libreofficekit/source/gtk/lokdocview.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
index 49ea27d91308..b901a6198f22 100644
--- a/libreofficekit/source/gtk/lokdocview.cxx
+++ b/libreofficekit/source/gtk/lokdocview.cxx
@@ -949,21 +949,18 @@ gboolean LOKDocView_Impl::callbackImpl(CallbackData* pCallback)
{
GdkRectangle aRectangle = LOKDocView_Impl::payloadToRectangle(pCallback->m_aPayload.c_str());
setTilesInvalid(aRectangle);
- renderDocument(0);
}
else
- {
m_pTileBuffer->resetAllTiles();
- renderDocument(0);
- }
+
+ gtk_widget_queue_draw(m_pDrawingArea);
}
break;
case LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR:
{
m_aVisibleCursor = LOKDocView_Impl::payloadToRectangle(pCallback->m_aPayload.c_str());
m_bCursorOverlayVisible = true;
- setTilesInvalid(m_aVisibleCursor);
- renderDocument(0);
+ gtk_widget_queue_draw(m_pDrawingArea);
}
break;
case LOK_CALLBACK_TEXT_SELECTION:
@@ -1030,7 +1027,6 @@ gboolean LOKDocView_Impl::callbackImpl(CallbackData* pCallback)
gtk_widget_set_size_request(m_pDrawingArea,
twipToPixel(m_nDocumentWidthTwips, m_fZoom),
twipToPixel(m_nDocumentHeightTwips, m_fZoom));
- m_pTileBuffer->resetAllTiles();
}
break;
case LOK_CALLBACK_SET_PART: