include/svx/svdmodel.hxx    |    1 +
 sd/source/core/drawdoc4.cxx |    2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 2a37809c176721aa374f51071684663bcbc38161
Author: Katarina Behrens <katarina.behr...@cib.de>
Date:   Mon Feb 19 14:37:19 2018 +0100

    Don't reformat all connectors every time spellchecking timer fires
    
    Editing document with many (~1k) connectors eats all available CPU
    power otherwise, as on every spellchecking event soffice tries to
    reposition ALL connectors in entire document
    
    Change-Id: I647b7309729dce153b8e05eff4677fe7bb9840a7

diff --git a/include/svx/svdmodel.hxx b/include/svx/svdmodel.hxx
index d90671311e76..d91520b3532a 100644
--- a/include/svx/svdmodel.hxx
+++ b/include/svx/svdmodel.hxx
@@ -565,6 +565,7 @@ public:
     // set of api calls.
     bool isLocked() const { return mbModelLocked; }
     void setLock( bool bLock );
+    void setLockSimple( bool bLock ) { mbModelLocked = bLock; }
 
     void            SetForbiddenCharsTable( const 
rtl::Reference<SvxForbiddenCharactersTable>& xForbiddenChars );
     rtl::Reference<SvxForbiddenCharactersTable> GetForbiddenCharsTable() const 
{ return mpForbiddenCharactersTable;}
diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx
index e151b8bcbae7..13a9a6f557f2 100644
--- a/sd/source/core/drawdoc4.cxx
+++ b/sd/source/core/drawdoc4.cxx
@@ -916,7 +916,7 @@ void SdDrawDocument::SpellObject(SdrTextObj* pObj)
 
                 pObj->BroadcastObjectChange();
                 if ( pModel )
-                    pModel->setLock(bLock);
+                    bLock ? pModel->setLock(bLock) : 
pModel->setLockSimple(bLock);
             }
         }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to