Bug 148210 - Adding drawing object line to a chart in CALC makes chart size erratic
Summary: Adding drawing object line to a chart in CALC makes chart size erratic
Status: RESOLVED DUPLICATE of bug 145599
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.2.0.4 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-26 19:34 UTC by spamtrap1
Modified: 2022-11-15 04:14 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
CALC ODS file with the problem described (16.02 KB, application/vnd.oasis.opendocument.spreadsheet)
2022-03-26 19:36 UTC, spamtrap1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description spamtrap1 2022-03-26 19:34:16 UTC
Description:
Adding a drawing object (a vertical line) to a chart in CALC changes the aspect ratio of the chart after the file is closed and reopened. Removing the drawing object restores the chart size.

Steps to Reproduce:
1. Create a simple column chart. 
2. In chart edit mode, use the drawing toolbar to place a vertical line across the chart.
3. Exit chart editing mode (all is well). 
4. Save and close the ODS file, then reopen it (the chart Y dimension has shrunk, but the vertical line is present and of the correct size). 
5. Double click the chart to enter edit mode (makes the chart full size again). 6. Exit chart edit mode (the chart shrinks, but the line does not). 
7. Edit the chart and delete the line.
8. Exit chart edit mode(the chart keeps the correct size).

Actual Results:
When the line is present the chart aspect ratio changes (Y becomes smaller). Removing the line removes the problem.

Expected Results:
The presence of the line should not affect the aspect ratio of the chart. 


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
This was not a problem until I updated to version 7.2.5.2  
The problem still exists after opening LibreOffice in Safe Mode. 
An ODS file showing this problem is attached.
Comment 1 spamtrap1 2022-03-26 19:36:24 UTC
Created attachment 179124 [details]
CALC ODS file with the problem described

Example of the problem reported
Comment 2 spamtrap1 2022-03-29 02:13:22 UTC
Problem still exists after updating to v.7.2.6.2
Comment 3 nobu 2022-11-14 09:28:29 UTC
Reproduce with Version 7.2.0 or later.

The arrow element also has a bug as well.

This bug is probably the same as 145599.

The workaround is to substitute the width of the rectangular element to zero.

*** This bug has been marked as a duplicate of bug 145599 ***