https://bugs.freedesktop.org/show_bug.cgi?id=50801
Bug #: 50801
Summary: Wrong cross-reference text when Caption order is
Numbering first
Classification: Unclassified
Product: LibreOffice
Version: unspecified
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
AssignedTo: [email protected]
ReportedBy: [email protected]
Start a new Writer document and insert a picture with caption. The Caption
order should be Numbering first. So you have something like this: "1.
Illustration: Foobar".
Then choose Cross-reference from the Insert menu. The Fields - Cross-reference
dialog appears. From Type box select Illustration. From Selection box select
the caption that you've just inserted. From Insert reference to box select the
following:
Category and Number
Expected text: "1. Illustration"
Actual text: "1"
Caption Text:
Expected text: "Foobar"
Actual text: "Illustration: Foobar"
Of course all works as expected, when Caption order is Category first.
I think the magic happens in SwGetRefField::UpdateField() in
sw/source/core/fields/reffld.cxx.
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs