diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-09 09:33:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-09 12:00:43 +0200 |
commit | 80a3538d1e68b25fabd03d391ebe3d75e40681bf (patch) | |
tree | d3bb0ffa9252767b76453f15366531d281d1cb55 /sd | |
parent | c6a26473f47c141026bf624668607f19394594ca (diff) |
tdf#104878 no need to generate invalidations if LOK off
shows up in a small way on a perf trace
Change-Id: Ia82606206c1a8fc1323b33f55d06e2a954eb1030
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91948
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/sdwindow.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx index 118f1545b186..671b52a3a49b 100644 --- a/sd/source/ui/view/sdwindow.cxx +++ b/sd/source/ui/view/sdwindow.cxx @@ -1009,6 +1009,8 @@ void Window::LogicInvalidate(const ::tools::Rectangle* pRectangle) if (!pDrawViewShell || pDrawViewShell->IsInSwitchPage()) return; + if (!comphelper::LibreOfficeKit::isActive()) + return; OString sRectangle; if (!pRectangle) sRectangle = "EMPTY"; |