sd/source/ui/docshell/sdclient.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit fdf95de18ef1891862bdce26669d1ce2c6f24764 Author: Tünde Tóth <toth.tu...@nisz.hu> AuthorDate: Fri Jan 13 09:54:00 2023 +0100 Commit: László Németh <nem...@numbertext.org> CommitDate: Tue Jan 17 10:00:46 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> 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() );