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

@ -34,6 +34,8 @@ public:
/// ///
void setPrettyCounter(docstring pc) { pretty_counter_ = pc; } void setPrettyCounter(docstring pc) { pretty_counter_ = pc; }
/// ///
void setFormattedCounter(docstring fc) { formatted_counter_ = fc; }
///
int rowFlags() const override { return CanBreakBefore | CanBreakAfter; } int rowFlags() const override { return CanBreakBefore | CanBreakAfter; }
/// Updates only the label string, doesn't handle undo nor references. /// Updates only the label string, doesn't handle undo nor references.
void updateLabel(docstring const & new_label, bool const active = true); void updateLabel(docstring const & new_label, bool const active = true);

View File

@ -315,6 +315,7 @@ void InsetMathHull::addToToc(DocIterator const & pit, bool output_active,
continue; continue;
if (label_[row]) { if (label_[row]) {
label_[row]->setPrettyCounter(_("Equation") + " " + numbers_[row]); label_[row]->setPrettyCounter(_("Equation") + " " + numbers_[row]);
label_[row]->setFormattedCounter(_("Equation") + " " + numbers_[row]);
label_[row]->addToToc(pit, output_active, utype, backend); label_[row]->addToToc(pit, output_active, utype, backend);
} }
docstring label = nicelabel(row); docstring label = nicelabel(row);