Bug 164323 - Calc - New line in Data Validity Cell Range breaks the cell refresh
Summary: Calc - New line in Data Validity Cell Range breaks the cell refresh
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.5.4.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Cell-Validity
  Show dependency treegraph
 
Reported: 2024-12-14 08:23 UTC by lore
Modified: 2024-12-14 16:18 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
File that shows the issue (16.31 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-12-14 08:24 UTC, lore
Details

Note You need to log in before you can comment on or make changes to this bug.
Description lore 2024-12-14 08:23:02 UTC
Description:
Dear all,
in a cell with data validity (drop down menu) sourced out of cells containing new lines, the cell content is not refreshed when the selection is changed. 

Please have a look at the file attached where I'm going through different scenarios: source with new lines in columns A:C, source without new lines in columns F:H, mixed source in columns K:M.

Cell C3 has data validity set to cells A2:A7 (source with new lines). If you change the selection in cell C3, you will see that the content of the cell is not refreshed however it is refreshed in cell C7 which contains the formula (=C3).

Cell H3 has data validity set to cells F2:F7 (source without new lines) is correctly refreshed.

Cell M3 has data validity set to cells K2:K7 (mixed source) behaves erratically.

Thanks!

Steps to Reproduce:
1. Create source for data validity with new lines
2. Create a data validity drop down menu in a new cell
3. Check that the cell is not refreshed correctly

Actual Results:
The data validity cell text is not refreshed when selecting a different option from the drop down menu

Expected Results:
The data validity text cell should refresh when selecting a different option from the drop down menu


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Please refer to the other fields.
Comment 1 lore 2024-12-14 08:24:16 UTC
Created attachment 198109 [details]
File that shows the issue
Comment 2 Regina Henschel 2024-12-14 16:18:33 UTC
It is a View refresh problem. When you scroll down and back up, the content in the cell with validity check is shown correctly.

I see the correct content, but in one line, in Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: d05c176cc022f1b771f7c064f6ce74e9f8c27a1b
CPU threads: 32; OS: Windows 10.0 Build 26100; UI render: default; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded

I see correctly two lines but with missing refresh in Version: 7.5.4.0.0+ (X86_64) / LibreOffice Community
Build ID: 0d0841dc8faccc7d7d3d8d463916dd73a7c061a1
CPU threads: 32; OS: Windows 10.0 Build 26100; UI render: default; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: threaded