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.
*** This bug has been marked as a duplicate of bug 42573 ***
Uray M. Janos committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=7dde426915ebbb7ea2ca3dc661f0a9ac70a26d5c fdo#50801 fix cross-reference text when Caption order is Numbering first
Uray M. Janos committed a patch related to this issue. It has been pushed to "libreoffice-3-6": http://cgit.freedesktop.org/libreoffice/core/commit/?id=450273888bcebc8e44bf5023be60f525ef56f0ec&g=libreoffice-3-6 fdo#50801 fix cross-reference text when Caption order is Numbering first It will be available in LibreOffice 3.6.1.
Uray M. Janos committed a patch related to this issue. It has been pushed to "libreoffice-3-5": http://cgit.freedesktop.org/libreoffice/core/commit/?id=cfa049ed525d18a922339d83fc5465fddb627c9a&g=libreoffice-3-5 fdo#50801 fix cross-reference text when Caption order is Numbering first It will be available in LibreOffice 3.5.6.