mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-25 22:06:15 +00:00
Footnote: (re-)add a fallback dummy counter
This commit is contained in:
parent
b8cac52759
commit
f5a2d770b8
@ -86,12 +86,14 @@ void InsetFoot::updateBuffer(ParIterator const & it, UpdateType utype, bool cons
|
||||
custom_label_ = translateIfPossible(il.labelstring());
|
||||
|
||||
int val = cnts.value(count);
|
||||
if (cnts.hasCounter(count))
|
||||
if (cnts.hasCounter(count)) {
|
||||
cnts.step(count, utype);
|
||||
custom_label_ += ' ' + cnts.theCounter(count, lang->code());
|
||||
if (deleted)
|
||||
// un-step after deleted counter
|
||||
cnts.set(count, val);
|
||||
custom_label_ += ' ' + cnts.theCounter(count, lang->code());
|
||||
if (deleted)
|
||||
// un-step after deleted counter
|
||||
cnts.set(count, val);
|
||||
} else
|
||||
custom_label_ += ' ' + from_ascii("#");
|
||||
setLabel(custom_label_);
|
||||
|
||||
InsetCollapsible::updateBuffer(it, utype, deleted);
|
||||
|
Loading…
Reference in New Issue
Block a user