- 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("#");