[LyX/master] Fix up 04fc48d790.

Richard Kimberly Heck rikiheck at lyx.org
Sat Jul 29 16:40:12 UTC 2023


commit 7fb3773e6023265dac3416085abb5bb33bd4ece0
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Sat Jul 29 13:53:59 2023 -0400

    Fix up 04fc48d790.
---
 src/insets/InsetLabel.h      |    2 ++
 src/mathed/InsetMathHull.cpp |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/insets/InsetLabel.h b/src/insets/InsetLabel.h
index 886b9c6..964d8de 100644
--- a/src/insets/InsetLabel.h
+++ b/src/insets/InsetLabel.h
@@ -33,6 +33,8 @@ public:
 	docstring const & formattedCounter() const { return formatted_counter_; }
 	///
 	void setPrettyCounter(docstring pc) { pretty_counter_ = pc; }
+        ///
+        void setFormattedCounter(docstring fc) { formatted_counter_ = fc; }
 	///
 	int rowFlags() const override { return CanBreakBefore | CanBreakAfter; }
 	/// Updates only the label string, doesn't handle undo nor references.
diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp
index 95a7eda..fc7dbe5 100644
--- a/src/mathed/InsetMathHull.cpp
+++ b/src/mathed/InsetMathHull.cpp
@@ -315,6 +315,7 @@ void InsetMathHull::addToToc(DocIterator const & pit, bool output_active,
 			continue;
 		if (label_[row]) {
 			label_[row]->setPrettyCounter(_("Equation") + " " + numbers_[row]);
+			label_[row]->setFormattedCounter(_("Equation") + " " + numbers_[row]);
 			label_[row]->addToToc(pit, output_active, utype, backend);
 		}
 		docstring label = nicelabel(row);


More information about the lyx-cvs mailing list