Show values of cross-references in tooltips.

(cherry picked from commit 2a1c3dce57)
This commit is contained in:
Richard Kimberly Heck 2024-06-01 12:36:00 -04:00
parent b78bcc2eb2
commit 26ab818033

View File

@ -534,8 +534,10 @@ void InsetRef::updateBuffer(ParIterator const & it, UpdateType, bool const /*del
if (use_formatted_ref || label.size() > maxLabelChars) {
tooltip_ = label;
support::truncateWithEllipsis(label, maxLabelChars);
} else
tooltip_ = from_ascii("");
} else {
// put cross-reference value into tooltip
tooltip_ = displayString(ref, cmd);
}
screen_label_ = label;
// If use_formatted_ref is active, this will be overwritten in addToToc.