[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - sd/source

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Wed Jan 22 13:51:55 UTC 2020


 sd/source/ui/slidesorter/view/SlideSorterView.cxx |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

New commits:
commit 577d0e71233eb00d459eb56163491bcb3a583bb4
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Tue Jan 21 13:52:31 2020 +0200
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Wed Jan 22 14:51:24 2020 +0100

    tdf#129388: Avoid any actual painting of the slide sorter in the LOKit case
    
    The JS code in Online creates its own slides sorter thing anyway, the
    one is core is only needed as a data structure.
    
    Change-Id: I0eeb79c523b72f7b616f11443198d5af82b70643
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87184
    Reviewed-by: Tor Lillqvist <tml at collabora.com>
    Tested-by: Tor Lillqvist <tml at collabora.com>

diff --git a/sd/source/ui/slidesorter/view/SlideSorterView.cxx b/sd/source/ui/slidesorter/view/SlideSorterView.cxx
index ede6c7e5a702..f1fc5f602bb2 100644
--- a/sd/source/ui/slidesorter/view/SlideSorterView.cxx
+++ b/sd/source/ui/slidesorter/view/SlideSorterView.cxx
@@ -46,6 +46,7 @@
 #include <sdpage.hxx>
 #include <Window.hxx>
 
+#include <comphelper/lok.hxx>
 #include <sal/log.hxx>
 #include <svl/itempool.hxx>
 #include <svx/svdpagv.hxx>
@@ -591,14 +592,18 @@ void SlideSorterView::CompleteRedraw (
     sdr::contact::ViewObjectContactRedirector* pRedirector)
 {
     (void)pRedirector;
+
+    if (comphelper::LibreOfficeKit::isActive())
+        return;
+
+    if (pDevice == nullptr || pDevice!=mrSlideSorter.GetContentWindow())
+        return;
+
 #ifdef DEBUG_TIMING
     const double nStartTime (gaTimer.getElapsedTime());
     SAL_INFO("sd.timing", "SlideSorterView::CompleteRedraw start" << (mnLockRedrawSmph ? " locked" : ""));
 #endif
 
-    if (pDevice == nullptr || pDevice!=mrSlideSorter.GetContentWindow())
-        return;
-
     // The parent implementation of CompleteRedraw is called only when
     // painting is locked.  We do all the painting ourself.  When painting
     // is locked the parent implementation keeps track of the repaint


More information about the Libreoffice-commits mailing list