From f5a2d770b841a1069ad9dec4a85ad0f154cc3599 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Fri, 6 Mar 2020 18:21:18 +0100 Subject: [PATCH] Footnote: (re-)add a fallback dummy counter --- src/insets/InsetFoot.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/insets/InsetFoot.cpp b/src/insets/InsetFoot.cpp index 5459f457c9..5865c7d77e 100644 --- a/src/insets/InsetFoot.cpp +++ b/src/insets/InsetFoot.cpp @@ -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); -- 2.39.2