mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Fix up 04fc48d790
.
This commit is contained in:
parent
6cffef87d2
commit
7fb3773e60
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user