sd/source/ui/func/smarttag.cxx |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

New commits:
commit bbc6d692f8c5b5b483dbc65bfcd4bd68ff6f6fae
Author:     Caolán McNamara <[email protected]>
AuthorDate: Wed Mar 11 23:14:33 2026 +0000
Commit:     Miklos Vajna <[email protected]>
CommitDate: Mon Mar 16 13:32:25 2026 +0100

    We don't need to invalidate the entire slide in kit-mode for SmartTags
    
    which are used in the "click to add picture" placeholder items I
    believe.
    
    Change-Id: Idaddc99fd36422f0d2c6ee4a7b41f758550b3b8b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201506
    Reviewed-by: Miklos Vajna <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    (cherry picked from commit 0850c5b5d2f72bbc0891921cd67fd00bbd69d56b)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/201810

diff --git a/sd/source/ui/func/smarttag.cxx b/sd/source/ui/func/smarttag.cxx
index f9aeec99eb1b..3ed1a8571b4d 100644
--- a/sd/source/ui/func/smarttag.cxx
+++ b/sd/source/ui/func/smarttag.cxx
@@ -18,6 +18,7 @@
  */
 
 #include <utility>
+#include <comphelper/lok.hxx>
 #include <vcl/commandevent.hxx>
 
 #include <ViewShell.hxx>
@@ -118,7 +119,8 @@ SmartTagSet::~SmartTagSet()
 void SmartTagSet::add( const SmartTagReference& xTag )
 {
     maSet.insert( xTag );
-    mrView.InvalidateAllWin();
+    if (!comphelper::LibreOfficeKit::isActive())
+        mrView.InvalidateAllWin();
 
     if( xTag == mxMouseOverTag )
         mxMouseOverTag.clear();
@@ -132,7 +134,8 @@ void SmartTagSet::remove( const SmartTagReference& xTag )
     std::set< SmartTagReference >::iterator aIter( maSet.find( xTag ) );
     if( aIter != maSet.end() )
         maSet.erase( aIter );
-    mrView.InvalidateAllWin();
+    if (!comphelper::LibreOfficeKit::isActive())
+        mrView.InvalidateAllWin();
 
     if( xTag == mxMouseOverTag )
         mxMouseOverTag.clear();

Reply via email to