summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTünde Tóth <toth.tunde@nisz.hu>2023-01-13 09:54:00 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2023-02-09 11:41:30 +0000
commite553620ceb3bdef3cfa6d1e9fc18ca30c74fe9f7 (patch)
tree6e285e00607e942fe140346ec41464aa47b3dbd2
parentopenssl: upgrade to release 3.0.8 (diff)
downloadcore-e553620ceb3bdef3cfa6d1e9fc18ca30c74fe9f7.tar.gz
core-e553620ceb3bdef3cfa6d1e9fc18ca30c74fe9f7.zip
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 <nemeth@numbertext.org> Tested-by: László Németh <nemeth@numbertext.org> (cherry picked from commit fdf95de18ef1891862bdce26669d1ce2c6f24764) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145583 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
-rw-r--r--sd/source/ui/docshell/sdclient.cxx7
1 files changed, 7 insertions, 0 deletions
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() );