sd/source/ui/docshell/sdclient.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit e553620ceb3bdef3cfa6d1e9fc18ca30c74fe9f7
Author:     Tünde Tóth <toth.tu...@nisz.hu>
AuthorDate: Fri Jan 13 09:54:00 2023 +0100
Commit:     Christian Lohmaier <lohmaier+libreoff...@googlemail.com>
CommitDate: Thu Feb 9 11:41:30 2023 +0000

    tdf#152991 sd: fix oversized rectangle of edited embedded object
    
    The embedded object became unusably oversized after editing,
    because it was not possible to minimize it by the mouse. Now
    the object keeps its original size to avoid of the UX problem.
    
    Note: losing the original zoom of the OLE content is still a problem.
    
    Change-Id: I8b7a2f2a84324bf4de2358ecb5fec5c1f7349155
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145454
    Reviewed-by: László Németh <nem...@numbertext.org>
    Tested-by: László Németh <nem...@numbertext.org>
    (cherry picked from commit fdf95de18ef1891862bdce26669d1ce2c6f24764)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145583
    Tested-by: Jenkins
    Reviewed-by: Christian Lohmaier <lohmaier+libreoff...@googlemail.com>

diff --git a/sd/source/ui/docshell/sdclient.cxx 
b/sd/source/ui/docshell/sdclient.cxx
index 02521c2575ad..c7f79c3ea813 100644
--- a/sd/source/ui/docshell/sdclient.cxx
+++ b/sd/source/ui/docshell/sdclient.cxx
@@ -143,6 +143,13 @@ void Client::ViewChanged()
     if (!pView)
         return;
 
+    // Do not recalculate the visareasize if the embedded object is opening in 
a new window.
+    if (!IsObjectInPlaceActive())
+    {
+        pSdrOle2Obj->BroadcastObjectChange();
+        return;
+    }
+
     ::tools::Rectangle aLogicRect( pSdrOle2Obj->GetLogicRect() );
     Size aLogicSize( aLogicRect.GetWidth(), aLogicRect.GetHeight() );
 

Reply via email to