filter/source/msfilter/msdffimp.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0935e997d2eb3db04c06504dffa4e59de49a289d
Author:     Noel Grandin <[email protected]>
AuthorDate: Mon May 23 17:19:09 2022 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Tue May 24 09:59:31 2022 +0200

    avoid some unnecessary work when importing graphic
    
    calling SetLogicRect triggers a bunch of listeners, but that work is
    unnecessary while we are still loading the data
    
    Change-Id: If71448400878a52551a1a3225d1c9cc1052f9867
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134839
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <[email protected]>

diff --git a/filter/source/msfilter/msdffimp.cxx 
b/filter/source/msfilter/msdffimp.cxx
index daf047007b49..66c3857711c2 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -4056,7 +4056,7 @@ SdrObject* SvxMSDffManager::ImportGraphic( SvStream& rSt, 
SfxItemSet& rSet, cons
                 pRet->SetName( aFileName );
         }
     }
-    pRet->SetLogicRect( rObjData.aBoundRect );
+    pRet->NbcSetLogicRect( rObjData.aBoundRect );
 
     if (SdrGrafObj* pGrafObj = dynamic_cast<SdrGrafObj*>(pRet))
     {

Reply via email to