Blame SOURCES/0021-lokdocview-fix-render-calls-after-LOK-callbacks.patch

f325b2
From 0dec0cdd711d87ec1741b4b66e8060d2f13a4496 Mon Sep 17 00:00:00 2001
f325b2
From: Pranav Kant <pranavk@gnome.org>
f325b2
Date: Sat, 6 Jun 2015 00:36:54 +0530
f325b2
Subject: [PATCH 021/398] lokdocview: fix render calls after LOK callbacks
f325b2
f325b2
Change-Id: Ib33f0e1dcf257350be1e2cf6c49cd92494472a55
f325b2
(cherry picked from commit 085f31a435eed43e3b7927e10309ddd00fb5b9a5)
f325b2
---
f325b2
 libreofficekit/source/gtk/lokdocview.cxx | 10 +++-------
f325b2
 1 file changed, 3 insertions(+), 7 deletions(-)
f325b2
f325b2
diff --git a/libreofficekit/source/gtk/lokdocview.cxx b/libreofficekit/source/gtk/lokdocview.cxx
f325b2
index 42dd14cb34ed..6c3176783953 100644
f325b2
--- a/libreofficekit/source/gtk/lokdocview.cxx
f325b2
+++ b/libreofficekit/source/gtk/lokdocview.cxx
f325b2
@@ -949,21 +949,18 @@ gboolean LOKDocView_Impl::callbackImpl(CallbackData* pCallback)
f325b2
         {
f325b2
             GdkRectangle aRectangle = LOKDocView_Impl::payloadToRectangle(pCallback->m_aPayload.c_str());
f325b2
             setTilesInvalid(aRectangle);
f325b2
-            renderDocument(0);
f325b2
         }
f325b2
         else
f325b2
-        {
f325b2
             m_pTileBuffer->resetAllTiles();
f325b2
-            renderDocument(0);
f325b2
-        }
f325b2
+
f325b2
+        gtk_widget_queue_draw(m_pDrawingArea);
f325b2
     }
f325b2
     break;
f325b2
     case LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR:
f325b2
     {
f325b2
         m_aVisibleCursor = LOKDocView_Impl::payloadToRectangle(pCallback->m_aPayload.c_str());
f325b2
         m_bCursorOverlayVisible = true;
f325b2
-        setTilesInvalid(m_aVisibleCursor);
f325b2
-        renderDocument(0);
f325b2
+        gtk_widget_queue_draw(m_pDrawingArea);
f325b2
     }
f325b2
     break;
f325b2
     case LOK_CALLBACK_TEXT_SELECTION:
f325b2
@@ -1030,7 +1027,6 @@ gboolean LOKDocView_Impl::callbackImpl(CallbackData* pCallback)
f325b2
         gtk_widget_set_size_request(m_pDrawingArea,
f325b2
                                     twipToPixel(m_nDocumentWidthTwips, m_fZoom),
f325b2
                                     twipToPixel(m_nDocumentHeightTwips, m_fZoom));
f325b2
-        m_pTileBuffer->resetAllTiles();
f325b2
     }
f325b2
     break;
f325b2
     case LOK_CALLBACK_SET_PART:
f325b2
-- 
f325b2
2.12.0
f325b2