Bug 168744 - editing format of input field crashes with assert
Summary: editing format of input field crashes with assert
Status: ASSIGNED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.8.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Noel Grandin
URL:
Whiteboard: target:26.2.0 target:25.8.3
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-08 11:07 UTC by Noel Grandin
Modified: 2025-10-19 13:47 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
bug doc (17.26 KB, application/vnd.oasis.opendocument.text)
2025-10-08 11:07 UTC, Noel Grandin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Noel Grandin 2025-10-08 11:07:12 UTC
Created attachment 203206 [details]
bug doc

This is a tracking bug for a bunch of issues around editing and formatting of writer input fields.

Specifically, this is similar to bug#94404 where jwz says:

I want to add an ISO date (2025-04-25 for example) in an input field, and keep the entire date on the same line.  With a bit of effort I can enter non-breaking hyphens in the input field, but Writer then breaks the text at the hyphens anyway.

However, in order to get there, we first need to get some other bugs out of the way.

For the initial issue
- you will need a debug build.
- open the attached document
- right click on the input field 
- select "Edit Fields"
- select a different format
- click OK

and we will crash an assert.
Comment 1 Commit Notification 2025-10-09 07:04:12 UTC
Noel Grandin committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/388af2c059533adb773fa9a4ebda577da523509c

tdf#168744 editting format of writer input field asserts

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 2 Commit Notification 2025-10-19 13:47:56 UTC
Noel Grandin committed a patch related to this issue.
It has been pushed to "libreoffice-25-8":

https://git.libreoffice.org/core/commit/0056bfa3fccc4f50ae0dccf70be01aed55583e93

tdf#168744 editting format of writer input field asserts

It will be available in 25.8.3.

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.