Bug 128436 - Range for Name forced to lowercase
Summary: Range for Name forced to lowercase
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
6.0.7.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Chart-Wizard
  Show dependency treegraph
 
Reported: 2019-10-28 17:19 UTC by Jonny Grant
Modified: 2025-05-26 13:11 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Test case (8.17 KB, application/vnd.oasis.opendocument.spreadsheet)
2019-10-28 17:19 UTC, Jonny Grant
Details
screenshot (132.56 KB, image/png)
2019-10-28 18:23 UTC, Oliver Brinzing
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonny Grant 2019-10-28 17:19:42 UTC
Created attachment 155373 [details]
Test case

Could anyone reproduce this in latest LibreOffice?
Sorry no time to try latest verison, as that crashed when we tried recently.

Attached file to reproduce

Note, if Insert->Chart by selecting A2:B5 that includes the column headings, the chart's "Range for Name" are correct.

If if Insert->Chart by selecting B2:B5 you need to manually enter the chart's "Range for Name" needs to be manually typed, and when it is - Calc changes it to lowercase, and removes any spaces.


Version: 6.0.7.3
Build ID: 1:6.0.7-0ubuntu0.18.04.10
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-GB (en_GB.UTF-8); Calc: group
Comment 1 Oliver Brinzing 2019-10-28 18:17:08 UTC
(In reply to Jonny Grant from comment #0)
> If if Insert->Chart by selecting B2:B5 you need to manually enter the
> chart's "Range for Name" needs to be manually typed, and when it is - Calc
> changes it to lowercase, and removes any spaces.

confirming, but IMHO you need to enter an absolute cell address for "Range for Name" and not string title
Comment 2 Oliver Brinzing 2019-10-28 18:23:40 UTC
Created attachment 155375 [details]
screenshot
Comment 3 Jonny Grant 2019-11-01 19:39:53 UTC
(In reply to Oliver Brinzing from comment #1)
> (In reply to Jonny Grant from comment #0)
> > If if Insert->Chart by selecting B2:B5 you need to manually enter the
> > chart's "Range for Name" needs to be manually typed, and when it is - Calc
> > changes it to lowercase, and removes any spaces.
> 
> confirming, but IMHO you need to enter an absolute cell address for "Range
> for Name" and not string title

Ah, I wonder why it works and shows the nice heading with a space and not forced to lower case if including the column heading?
Comment 4 Xisco Faulí 2019-11-11 16:49:13 UTC
I can't reproduce it in

Version: 6.4.0.0.alpha1+
Build ID: fea5c10e222b10d83e0081dc1d1b2e678689d250
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

which are the specific steps to reproduce it ?
Comment 5 Oliver Brinzing 2019-11-11 17:54:51 UTC
steps to reproduce:

- open attached spreadsheet
- select B2:B5 
- Menu Insert->Chart
- [Next]
- [Next]
- Data Series: Select "ColumnA"
- Data ranges: Select "Name"
- Range for Name: enter "HelloWorld"

but i think, only cell ranges are allowed for input
Comment 6 QA Administrators 2021-11-11 04:14:24 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2025-05-26 03:11:43 UTC Comment hidden (obsolete)
Comment 8 Regina Henschel 2025-05-26 13:11:42 UTC
This is related to bug 64722. There saving the string was added as extended attribute loext:label-string. That hides, that the possibility to use a simple string instead of a cell reference, was originally not intended and has only accidentally worked.

Internal calculations are related to UNO interface XRangeXMLConversion.

Currently we have a half-baked implementation. Because we already write such strings to file for a while, we cannot remove this possibility. We need to implement it properly. Such needs to start with a description of the intended behavior of having a direct string as series name.

Tested with Version: 25.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 3158b14e0b26875300a8098bc117a5e69b76f48f
CPU threads: 32; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded