Bug 162445 - On `Select All', font metrics indicated are not correct
Summary: On `Select All', font metrics indicated are not correct
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.2.5.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: Selection Fonts-Size-Combobox
  Show dependency treegraph
 
Reported: 2024-08-13 02:13 UTC by Bogaboga Man
Modified: 2024-08-30 04:54 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
File having `Select All' bug (13.13 KB, application/vnd.oasis.opendocument.text)
2024-08-13 02:14 UTC, Bogaboga Man
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bogaboga Man 2024-08-13 02:13:00 UTC
Description:
With a document having different font attributes (as attached), the attributes highlighted on `Select All' (bold & size 13) are not correct.

Steps to Reproduce:
1. Simply select All text in the attached file

Actual Results:
Highlighted font becomes `13' and `bold' though font size 13 does not exist anywhere Not every text is bold though `bold' is also highlighted.

Expected Results:
If the font sizes are not the same, the font selection combo-box should not show anything selected like it happens on the font name.


Reproducible: Always


User Profile Reset: No

Additional Info:
Font size 13 was one of the fonts employed while hunting for bugs. It was changed at some point later.
Comment 1 Bogaboga Man 2024-08-13 02:14:33 UTC
Created attachment 195813 [details]
File having `Select All' bug

File went through several iterations while bug hunting.
Comment 2 raal 2024-08-25 19:59:23 UTC
Confirm with Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1565181908a06dcdb8d97d6be8ff773acd1d05cb
CPU threads: 4; OS: Linux 6.8; UI render: default; VCL: gtk3
Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US
Calc: threaded

Works in 7.3.7
Comment 3 raal 2024-08-25 20:07:18 UTC
This seems to have begun at the below commit in bibisect repository/OS linux-64-24.2.
Adding Cc: to Armin Le Grand ; Could you possibly take a look at this one?
Thanks
 04d692d92e3fef4632e7cdabe449363eb1690381 is the first bad commit
commit 04d692d92e3fef4632e7cdabe449363eb1690381
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Fri Sep 8 18:01:49 2023 +0200

    source c1f3b34f871d2a6bb9ee7b912492be1164eec96f

156306: ITEM: preparations for more/easier changes II | https://gerrit.libreoffice.org/c/core/+/156306