Bug 167890 - Bold text in Math formula doesn't survive .docx roundtrip
Summary: Bold text in Math formula doesn't survive .docx roundtrip
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
24.2.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Formula-Editor
  Show dependency treegraph
 
Reported: 2025-08-10 18:30 UTC by Gerry
Modified: 2025-08-12 04:54 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Math formula with bold text in .odt (14.36 KB, application/vnd.oasis.opendocument.text)
2025-08-10 18:30 UTC, Gerry
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerry 2025-08-10 18:30:59 UTC
Created attachment 202267 [details]
Math formula with bold text in .odt

Bold text in math formular doesn't survive .docx roundtrip

How to reproduce:
1. Open attached .odt file. It contains a simple formula matrix with one character in bold
2. Save the file as .docx
3. Reopen the .docx file
4. -> the text is not bold anymore. All bold formatting is lost.



Version: 24.2.7.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 16; OS: Linux 6.14; UI render: default; VCL: gtk3
Locale: en-CA (en_CA.UTF-8); UI: en-US
Ubuntu package version: 4:24.2.7-0ubuntu0.24.04.4
Calc: threaded

Also tried it in LO 25.2. Bug can be also reproduced there.
Comment 1 m_a_riosv 2025-08-10 20:59:24 UTC
Reproducible
Version: 25.2.5.2 (X86_64) / LibreOffice Community
Build ID: 03d19516eb2e1dd5d4ccd751a0d6f35f35e08022
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: es-ES
Calc: CL threaded
AND
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 7f4868348c14b305fcd75744e1e3544d0d3a5d61
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded


It changes from
"
left ( matrix { 

a11 #bold{a12}
 # a13 # ... ## 
a21 # a22 # a23 # ... ##  
a31 # a32 # a33 # ... ##
... # ... # ... # ...
} right )
"

to 

"
left (matrix {a 11 # a 12 # a 13 # ... ## a 21 # a 22 # a 23 # ... ## a 31 # a 32 # a 33 # ... ## ... # ... # ... # ...} right )
"