Bug 170490 - Negative font size difference is wrongly written to file
Summary: Negative font size difference is wrongly written to file
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
26.8.0.0 alpha0+ master
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-26 23:49 UTC by Regina Henschel
Modified: 2026-01-26 23:49 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Styles with font size difference (13.41 KB, application/vnd.oasis.opendocument.text)
2026-01-26 23:49 UTC, Regina Henschel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Regina Henschel 2026-01-26 23:49:51 UTC
Created attachment 205182 [details]
Styles with font size difference

Open attached document.
It has a paragraph style "Minus3pt", that has style "Text body" (Body Text) as parent and a relative font size defined as "-3pt".
It has a character style "minus8pt", that has style "Char18pt" as parent and a relative font size defined as "-8pt".
That works in the UI of LibreOffice.

But now look into the file markup. You will find style:font-size-rel="65533pt" and style:font-size-rel="65528pt". It should be style:font-size-rel="-3pt" and style:font-size-rel="-8pt". Apparently there is signed-unsigned-error in reading and writing.

Word is not able to handle style:font-size-rel. Thus the error is not visible in that filter.
The error becomes visible, when you export the file to XHTML.

This property is "CharDiffHeight" in the API with data type float. You see the wrong values 65533 and 65528 too, when you inspect the document with the Development Tools.