Bug 166850 - FILEOPEN: DOCX: StyleRef field broken in German UI
Summary: FILEOPEN: DOCX: StyleRef field broken in German UI
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: target:25.8.0 target:26.2.0 target:25...
Keywords: filter:docx
Depends on:
Blocks: Writer-Styles-Paragraph
  Show dependency treegraph
 
Reported: 2025-06-04 05:49 UTC by Oliver Specht (CIB)
Modified: 2025-06-18 09:07 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample document with StyleRef field (30.67 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-06-04 05:49 UTC, Oliver Specht (CIB)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Specht (CIB) 2025-06-04 05:49:09 UTC
Created attachment 201089 [details]
Sample document with StyleRef field

Load the attachment with German UI

The fields in the headers on page 2-4 show an error "Fehler: Verweis nicht gefunden"

This happens because beginning with commit bd727654ec8cc339292072b42073e57d566cc220 the names of built-in styles in localized versions are imported with a suffix " (user)"
The StyleRef fields points now to a style "Überschrift 1" but the related style name is "Überschrift 1 (user)"
Comment 1 Jessica 2025-06-04 12:20:02 UTC
I can confirm this in 

Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 16; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Vulkan; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded

If I change UI to EN then it works.
Comment 2 Commit Notification 2025-06-05 08:26:56 UTC
Oliver Specht committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/80877c7dc467bf5ad6b28ec1b2662db36fcf7542

tdf#166850 Apply converted style name to StyleRef field

It will be available in 25.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 3 Commit Notification 2025-06-17 16:43:52 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/f5d48df7355ac7db3f3dd396eed1e7c57658ef7c

tdf#159549 tdf#166850 sw,xmloff: fix localised STYLEREF differently

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 4 Commit Notification 2025-06-18 09:07:37 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/169050eab3700c3012c2b1583000a922442f153b

tdf#159549 tdf#166850 sw,xmloff: fix localised STYLEREF differently

It will be available in 25.8.0.0.beta2.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.