We only have 4 nesting labels available.
In the workarea, display a fallback label with deeper nesting.
switch(layout.labeltype) {
case LABEL_ITEMIZE: {
par.params().labelString(
- bp.user_defined_bullet(par.itemdepth).getLabel());
+ (par.itemdepth < 4)
+ ? bp.user_defined_bullet(par.itemdepth).getLabel()
+ // Display fallback for too deeply nested items
+ : bformat(from_ascii("[?%1$d]"), int(par.itemdepth + 1)));
break;
}
FontInfo lfont = font;
// bullet?
- if (layout.labeltype == LABEL_ITEMIZE) {
+ if (layout.labeltype == LABEL_ITEMIZE && par_.itemdepth < 4) {
// get label font size from document properties
lfont.setSize(pi_.base.bv->buffer().params().user_defined_bullet(par_.itemdepth).getFontSize());
// realize to avoid assertion