[Libreoffice-bugs] [Bug 107035] Missing numbering in inserted caption when document is saved in DOCX format and reopened

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Oct 22 12:24:14 UTC 2017


https://bugs.documentfoundation.org/show_bug.cgi?id=107035

--- Comment #3 from Luke Deller <luke at deller.id.au> ---
I think the commit identified in bibisection has merely triggered a
pre-existing bug.

The underlying issue seems to be in the docx import, when there is direct
character style formatting on the text immediately preceding a field, then the
field is wrongly given that formatting.

The commit identified in bibisection happens to set up the above situation: it
adds character formatting to the line break which precedes the caption, to mark
the line break as "hidden".  The caption begins with a field for the numbering.
 So this gives us direct character formatting immediately preceding a field,
which triggers the underlying bug described above.  The consequence is that the
field for the numbering is also hidden.

I will attach a simpler test case of the underlying issue (not sure if that
should be described in a separate bug item or just addressed here?)

Steps to reproduce:
1. Create a new Writer document
2. Enter some text on the first line, followed by a field such as page number
("Insert" menu -> "Page number") still on the same line
3. Highlight all the text up to but not including the field, right click on it
to bring up the context menu and select "Character..."
4. Change some visibly obvious character style (e.g. set the font colour to be
green)
5. Save as docx, close document, reopen docx file

Observed output: the character style set at step 4 is now applied to the field

Expected output: the character style set at step 4 should not be applied to the
field

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20171022/00886085/attachment.html>


More information about the Libreoffice-bugs mailing list