diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2025-02-13 15:51:54 +0500 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2025-02-13 13:44:22 +0100 |
commit | a383d7afa4e82bea728ecddf1bc44bbd9fd0eddb (patch) | |
tree | 5d85e57533d8189a0638b0db2ea4cc5de7d342d6 /udkapi | |
parent | 22c07826d77adf93ada6e17ed6ac531163dd5059 (diff) |
The problem was, that having a spreadsheet with objects,
e.g. rectangles, drawn e.g. over M15:O31, and zooming
the spreadsheet in Online, the object was painted with
substantial offset from the actual placement (it could
be three rows below, and some millimeters to the right).
The problem was, that respective ViewObjectContact did
not reset its maGridOffset upon changing zoom, because
it belonged to a view cached in ScGridWindow.
It is different from what GetSdrPageView will return in
ScDrawView::resetGridOffsetsForAllSdrPageViews; we need
to handle that in ScModelObj::setClientZoom, or zooming
in Calc would paint drawing objects in wrong positions.
The sizes of the objects are still painted incorrectly.
Change-Id: Ie2f90568f0570bc0492b614a5fa9128c3e5e9a1b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181611
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'udkapi')
0 files changed, 0 insertions, 0 deletions