Created attachment 43968 [details] dialog Crossreference looks strange In Writer when inserting crossreference to formula, dialog looks somewhat strange. Formula appears: (1 (2 (3 But I expect or nether parenthes or both
Indeed the text name is somewhat strange. I'll need to investigate a bit more into the code as this may even be an EasyHack.
I have already committed a patch to the developers-list that solves this problem.
Created attachment 47268 [details] Patch to solve the problem
The patch is in the master, so closing the ticket
Sorry Rob, your patch had devastating effect on the cross-reference handling, see bug #50139 and many duplicates. ;-) I had to revert it. In fact the code is very stupid. It is not enough to cut the first character. You see that all characters before the number are printed, so in fact it should be solved by editing the sample document, e.g. put parentheses into separate table cells, so we have the same visual effect, but don't have the "strange" entries in Cross reference dialog. E.g. | E = mc^2 | (|1|) | That being said, there is still room for improvement in sw core, because the code there assumes that captions are always in the form of "Type" + "Number" (e.g. Illustration 1), while it is not true. It is possible to number first (e.g. 1. ábra in Hungarian), and then the code cannot handle it, it will display the number only.
Fix for bug #50144 also fixes this bug. You'll see (1) in the Selection box. *** This bug has been marked as a duplicate of bug 50144 ***