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>
diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx
index 118f154..671b52a 100644
--- a/sd/source/ui/view/sdwindow.cxx
+++ b/sd/source/ui/view/sdwindow.cxx
@@ -1009,6 +1009,8 @@
    if (!pDrawViewShell || pDrawViewShell->IsInSwitchPage())
        return;

    if (!comphelper::LibreOfficeKit::isActive())
        return;
    OString sRectangle;
    if (!pRectangle)
        sRectangle = "EMPTY";