X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInsetFlex.cpp;h=31828b615ffbd808ea7e972e2c3ecbd252114b35;hb=131f4b92bac3ecb75b47c266dfa3d8543bd4d578;hp=61e47d4c367f1737a4e69e821937b4abf09040a9;hpb=c466baaa5b99e44ea25616556bd0918197f4b54c;p=lyx.git diff --git a/src/insets/InsetFlex.cpp b/src/insets/InsetFlex.cpp index 61e47d4c36..31828b615f 100644 --- a/src/insets/InsetFlex.cpp +++ b/src/insets/InsetFlex.cpp @@ -146,9 +146,13 @@ void InsetFlex::updateBuffer(ParIterator const & it, UpdateType utype) docstring const & count = il.counter(); bool const have_counter = cnts.hasCounter(count); if (have_counter) { - cnts.step(count, utype); - custom_label += ' ' + - cnts.theCounter(count, it.paragraph().getParLanguage(bp)->code()); + Paragraph const & par = it.paragraph(); + if (!par.isDeleted(it.pos())) { + cnts.step(count, utype); + custom_label += ' ' + + cnts.theCounter(count, it.paragraph().getParLanguage(bp)->code()); + } else + custom_label += ' ' + from_ascii("#"); } setLabel(custom_label);