diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2021-11-04 17:17:00 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2021-11-11 14:54:16 +0100 |
commit | 9b96b748f324294cdf4b2d60bcea689757e08334 (patch) | |
tree | 62fdae353e7e5e483bf0a56c2a96870115964a3f | |
parent | bef0b6dfef69472098aa11f4235ddef34d10cd35 (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>
(cherry picked from commit 7f88f47bb9995eaf4d9cc169788e9fe2006af1ad)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124971
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@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 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, |