Bug 165817 - Calc - Shaded cells do not have the same "size" as unshaded cells
Summary: Calc - Shaded cells do not have the same "size" as unshaded cells
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
25.2.1.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-19 10:43 UTC by telrod11
Modified: 2025-08-24 18:23 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Print of what the spreadsheet looks like, with highlighted example (128.49 KB, application/pdf)
2025-03-19 10:46 UTC, telrod11
Details
sample of spreadsheet (14.93 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2025-03-19 17:55 UTC, telrod11
Details

Note You need to log in before you can comment on or make changes to this bug.
Description telrod11 2025-03-19 10:43:09 UTC
Description:
I have a Calc - spreadsheet that has alternating shaded rows, and all rows are set to have the same font and size, but as you use the sheet, it appears the font on the shaded rows appear much smaller than the unshaded.  I'll enclose a pic, and a shot of the spreadsheet.

Steps to Reproduce:
1.Alternately shade your spreadsheet

2.See the results, with any font, as you resize the data
3.

Actual Results:
They should render the same

Expected Results:
They do not


Reproducible: Always


User Profile Reset: No

Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: SpreadsheetDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no
Comment 1 telrod11 2025-03-19 10:46:13 UTC
Created attachment 199896 [details]
Print of what the spreadsheet looks like, with highlighted example

Not a killer bug, but one that should be addressed, thank you!
Comment 2 m_a_riosv 2025-03-19 14:57:55 UTC
Please attach a sample file, reduce the size as much as possible without private information, and paste the information in Menu/Help/About LibreOffice, there is a copy icon.
Comment 3 telrod11 2025-03-19 17:55:06 UTC
Here you go....
Comment 4 telrod11 2025-03-19 17:55:59 UTC
Created attachment 199907 [details]
sample of spreadsheet
Comment 5 m_a_riosv 2025-03-19 21:49:52 UTC
Seems the issue, is the 'ConditionalStye_1' having a font size of 11, used by Calc to set up the cell height.

But it doesn't affect the cells with a date format, which maintains the number and font format, that looks it was a direct format not and style format.

Some behaviors under conditional format are a bit tricky mixed with direct formats.

Version: 25.2.2.1 (X86_64) / LibreOffice Community
Build ID: 38d746d66d9b82fa248a2e90142b9dd3ddd1d6cd
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded
Comment 6 telrod11 2025-03-25 11:35:48 UTC
I'm using Format - Autoformat Styles.

Would you think I need to format the cells differently, perhaps directly, to get the alternate shading and get the font to appear as it should?

Thanks
Comment 7 m_a_riosv 2025-03-25 13:22:06 UTC
That autoformat are direct formats on the cells.

Using a copy of the file.
Test:
Put the CF in a range outside the data range.
Clean the direct formats Menu>Format>Clear direct formatting [Ctrl+M]
Change the CF range and text, how it works.
Maybe a format for the cells with dates is needed.
Comment 8 telrod11 2025-03-25 13:46:22 UTC
So, I played with it, and fixed it with conditional formatting using:

Format -> Conditional -> Condition...
Condition 1: Formula is ISEVEN(ROW()) Apply Style

But

Shouldn't the built in autoformat  respect the font choices?
Comment 9 telrod11 2025-04-09 11:21:18 UTC
This issue has been fixed in release 25.2.2.2

Thank you!!
Comment 10 BogdanB 2025-08-24 18:23:18 UTC
Works for me, based on comment 9.