sc/source/ui/app/client.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit a1f16b4603bffddb2f6380874d63f928289de85a Author: Tünde Tóth <toth.tu...@nisz.hu> AuthorDate: Fri Jan 13 09:31:38 2023 +0100 Commit: László Németh <nem...@numbertext.org> CommitDate: Tue Jan 17 10:34:24 2023 +0000 tdf#152989 sc: fix oversized rectangle of edited embedded object Editing resulted unusably oversized OLE objects. Keep its original size to fix the UX problem. Note: lost zoom is still a problem. See also commit fdf95de18ef1891862bdce26669d1ce2c6f24764 "tdf#152991 sd: fix oversized rectangle of edited embedded object" Change-Id: I6b73d1aea76ea4addc24ff978403893c3cbd3dac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145432 Tested-by: László Németh <nem...@numbertext.org> Reviewed-by: László Németh <nem...@numbertext.org> diff --git a/sc/source/ui/app/client.cxx b/sc/source/ui/app/client.cxx index 2c7fea5ab376..ea9ffa9ade9c 100644 --- a/sc/source/ui/app/client.cxx +++ b/sc/source/ui/app/client.cxx @@ -202,6 +202,12 @@ void ScClient::ViewChanged() if (!pDrawObj) return; + if (!IsObjectInPlaceActive()) + { + pDrawObj->ActionChanged(); + return; + } + tools::Rectangle aLogicRect = pDrawObj->GetLogicRect(); Fraction aFractX = GetScaleWidth() * aVisSize.Width(); Fraction aFractY = GetScaleHeight() * aVisSize.Height();