sw/source/core/view/viewsh.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 9b96b748f324294cdf4b2d60bcea689757e08334
Author:     Luboš Luňák <l.lu...@collabora.com>
AuthorDate: Thu Nov 4 17:17:00 2021 +0100
Commit:     Luboš Luňák <l.lu...@collabora.com>
CommitDate: Thu Nov 11 14:54:16 2021 +0100

    do not draw "desktop" (=surrounding background) in Writer in LOK mode
    
    It's meant to stay transparent.
    
    Change-Id: Ia6264c44f369e80092f78a6a6674857460cd7c04
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124716
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com>
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>
    (cherry picked from commit 7f88f47bb9995eaf4d9cc169788e9fe2006af1ad)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124971
    Tested-by: Jenkins
    Reviewed-by: Luboš Luňák <l.lu...@collabora.com>

diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index 20b4d0ac13a6..0f8284c5d915 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -1535,6 +1535,9 @@ void SwViewShell::PaintDesktop(const vcl::RenderContext& 
rRenderContext, const S
     if ( !GetWin() && !GetOut()->GetConnectMetaFile() )
         return;                     //for the printer we don't do anything 
here.
 
+    if(comphelper::LibreOfficeKit::isActive())
+        return;
+
     //Catch exceptions, so that it doesn't look so surprising.
     //Can e.g. happen during Idle.
     //Unfortunately we must at any rate Paint the rectangles next to the pages,

Reply via email to