Bug 137020 - FILEOPEN Vertical flipped, cell anchored shapes have wrong position on opening
Summary: FILEOPEN Vertical flipped, cell anchored shapes have wrong position on opening
Status: VERIFIED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.1.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-25 10:40 UTC by Regina Henschel
Modified: 2020-11-02 14:29 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
File for reproducing the bug (8.76 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-09-25 10:40 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2020-09-25 10:40:48 UTC
Created attachment 165831 [details]
File for reproducing the bug

Open attached document. It has two shapes, the green one is normal and the red one is flipped vertically. Currently they are anchored to page, so that you get them correctly.

To reproduce the error, change for both shapes the anchor to "At cell". Save the file to new name, close and reopen it. Notice, that the red shape has got a wrong position.

The error is in ScDrawLayer::RecalcPos where the additional 180deg of vertical flipped custom shapes is not considered, when calculating the initial position on opening.
Comment 1 Buovjaga 2020-09-29 13:56:54 UTC
Repro

Arch Linux 64-bit
Version: 7.1.0.0.alpha0+
Build ID: 97bc09c1fef52c45cf299868045d250838d8e89b
CPU threads: 8; OS: Linux 5.8; UI render: default; VCL: kf5
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 28 September 2020
Comment 2 Regina Henschel 2020-10-31 16:55:25 UTC
Should be fixed with https://cgit.freedesktop.org/libreoffice/core/commit/?id=1f0b3c7a40edfa81bbc7a58d123a6a2dfd83e4ca

(The patch covers several bug reports, therefore no automatic notification.)
Comment 3 Buovjaga 2020-11-02 14:29:00 UTC
Verified

Arch Linux 64-bit
Version: 7.1.0.0.alpha1+
Build ID: 2764c334c3b9cf428e4e7ab0c28ce6a34036fa77
CPU threads: 8; OS: Linux 5.9; UI render: default; VCL: kf5
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 2 November 2020