From 8f6c41a110e3bc5c9e13472d03e761f3b3437523 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Tue, 6 Aug 2024 11:18:51 -0400 Subject: [PATCH] temp --- src/insets/InsetRef.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/insets/InsetRef.cpp b/src/insets/InsetRef.cpp index a75de56d5b..0fd622b689 100644 --- a/src/insets/InsetRef.cpp +++ b/src/insets/InsetRef.cpp @@ -573,13 +573,12 @@ void InsetRef::addToToc(DocIterator const & cpit, bool output_active, // Code for display of formatted references bool const use_formatted_ref = buffer().params().use_formatted_ref; - if (use_formatted_ref) { - string const & cmd = getCmdName(); - docstring const & ref = getParam("reference"); - if (cmd != "pageref" && cmd != "vpageref" && cmd != "vref" && - cmd != "labelonly") - screen_label_ = displayString(ref, cmd); - } + docstring & target = use_formatted_ref ? screen_label_ : tooltip_; + string const & cmd = getCmdName(); + docstring const & ref = getParam("reference"); + if (cmd != "pageref" && cmd != "vpageref" && cmd != "vref" && + cmd != "labelonly") + target = displayString(ref, cmd); return; } // It seems that this reference does not point to any valid label. -- 2.39.5