]> git.lyx.org Git - features.git/commit
Properly show labels from broken references in Cross-references dialog
authorDaniel Ramöller <d.lyx@web.de>
Wed, 16 Feb 2022 13:57:06 +0000 (14:57 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 19 Feb 2022 17:14:47 +0000 (18:14 +0100)
commitdf59649a18f19486dc06b3e921272cea6d4ee343
tree8f2a3a1cdec0756d4ae37e67d32a24bc52fa5eeb
parent8519e2b074df93c0fd6ee70158a61f8ca91dad56
Properly show labels from broken references in Cross-references dialog

Fix for bug #12456.

The labels are transmitted from Buffer to GuiRef by reference of refs_
in the getLabelList function. Previously, only one string was
transmitted. But I needed both the formatted string, e.g. "x enu:test"
or "Missing: enu:test", as well as the plain label, e.g. "enu:test".
The former is for the list of labels to choose from in GuiRef and the
latter for the label as shown in the line edit that contains the plain
label in order to create a new reference from it. Transmitting both is
what the pair achieves.
src/Buffer.cpp
src/Buffer.h
src/TocBackend.cpp
src/TocBackend.h
src/frontends/qt/GuiRef.cpp
src/frontends/qt/GuiRef.h
src/insets/InsetRef.cpp