[LyX/2.4.x] temp

Richard Kimberly Heck rikiheck at lyx.org
Tue Aug 6 15:36:43 UTC 2024


commit 8f6c41a110e3bc5c9e13472d03e761f3b3437523
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Tue Aug 6 11:18:51 2024 -0400

    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.


More information about the lyx-cvs mailing list