This commit is contained in:
Richard Kimberly Heck 2023-07-29 13:53:59 -04:00
parent 6cffef87d2
commit 7fb3773e60
2 changed files with 3 additions and 0 deletions

View File

@ -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.

View File

@ -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);