From 7fb3773e6023265dac3416085abb5bb33bd4ece0 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Sat, 29 Jul 2023 13:53:59 -0400 Subject: [PATCH] Fix up 04fc48d790. --- src/insets/InsetLabel.h | 2 ++ src/mathed/InsetMathHull.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/insets/InsetLabel.h b/src/insets/InsetLabel.h index 886b9c6d8a..964d8dec5a 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 95a7eda09d..fc7dbe561d 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); -- 2.39.5