diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-11-04 17:17:00 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2021-11-11 10:47:57 +0100 |
commit | 7f88f47bb9995eaf4d9cc169788e9fe2006af1ad (patch) | |
tree | 6b52bdd23b91f780c722ffa8787837df6e62b5d5 | |
parent | fe03d516660f9116ac759201b171144521e41816 (diff) |
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 <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r-- | sw/source/core/view/viewsh.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
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, |