Bug 152875 - Diagram legend is changed when insert raw above chart data
Summary: Diagram legend is changed when insert raw above chart data
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.4.3.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Chart-Legends
  Show dependency treegraph
 
Reported: 2023-01-04 13:47 UTC by kai-bz23dforg
Modified: 2023-04-03 19:09 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kai-bz23dforg 2023-01-04 13:47:38 UTC
The diagram legend is changed when saving. Steps to reproduce (translated from German, so the labels may not match the English LO):

Enter the following data in a new spreadsheet (Ax means column A, row x):
A1: Test
A2: 3
A3: 5
A4: 7

Mark cells A2 to A4, open diagram assistant (insert diagram). In the following dialog press OK (or finish or whatever to close the dialog immediately).

Now the diagram contains a legend with the text "Column A" (or something similar). Select legend, right click, call "Data area" or "Data ranges" (DE: Datenbereiche). Change the Name of the data to eg. "XXX", press OK. Legend will change in diagram to "XXX".

Save file, format ODS.

Right click on row 1 - the whole row should now highlighted. From context menu select "Insert row above" (DE: Zeile oberhalb einfügen). An empty row will be inserted, and the legend will be immediately changed to "Test" (or whatever you entered in cell A1 before).

Possibly similar: https://bugs.documentfoundation.org/show_bug.cgi?id=79151
Comment 1 Lesline 2023-01-23 06:51:01 UTC
Hello Kai.

Thank you for reporting the bug.  

I can confirm that I was able to reproduce the bug in the following builds:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d07b1cc8148140bd3a78103da668d002b9d266ab
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded

Version: 7.4.3.2 (x64) / LibreOffice Community
Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded


Kind Regards