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

New commits:
commit 7f88f47bb9995eaf4d9cc169788e9fe2006af1ad
Author:     Luboš Luňák <l.lu...@collabora.com>
AuthorDate: Thu Nov 4 17:17:00 2021 +0100
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Thu Nov 11 10:47:57 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>

diff --git a/sw/source/core/view/viewsh.cxx b/sw/source/core/view/viewsh.cxx
index 42ae60123c71..19d0c5261c87 100644
--- a/sw/source/core/view/viewsh.cxx
+++ b/sw/source/core/view/viewsh.cxx
@@ -1533,6 +1533,9 @@ void SwViewShell::PaintDesktop(vcl::RenderContext& 
rRenderContext, const SwRect
     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