summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTünde Tóth <toth.tunde@nisz.hu>2023-01-13 09:31:38 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2023-02-09 11:43:02 +0000
commitbdbeff654038921943658a5bf6e7faf21f5776da (patch)
tree19295a60c641f27b35ca2d75373745e1f28e26e4
parenttdf#152964 sw: fix crash of Undo of tracked deletion of empty table rows (diff)
downloadcore-bdbeff654038921943658a5bf6e7faf21f5776da.tar.gz
core-bdbeff654038921943658a5bf6e7faf21f5776da.zip
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 <nemeth@numbertext.org> Reviewed-by: László Németh <nemeth@numbertext.org> (cherry picked from commit a1f16b4603bffddb2f6380874d63f928289de85a) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145588 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
-rw-r--r--sc/source/ui/app/client.cxx6
1 files changed, 6 insertions, 0 deletions
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();