From: Juergen Spitzmueller Date: Tue, 2 Jan 2018 17:05:43 +0000 (+0100) Subject: Limit 761a542551bc9 to the case where we have a label. X-Git-Tag: lyx-2.4.0dev-acb2ca7b~4077 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=55349823f0726dce8fa3de74b5f13f3691a99a15;p=features.git Limit 761a542551bc9 to the case where we have a label. --- diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index 69b480d185..86ddb30f3b 100644 --- a/src/RowPainter.cpp +++ b/src/RowPainter.cpp @@ -276,6 +276,7 @@ void RowPainter::paintDepthBar() const // We also mark follow-up paragraphs in a paragraph group if (par_.layout().isParagraphGroup() + && par_.layout().labeltype != LABEL_NO_LABEL && !text_.isFirstInSequence(row_.pit())) ++depth; @@ -290,6 +291,7 @@ void RowPainter::paintDepthBar() const prev_depth = pars_[pit2].getDepth(); // We also mark follow-up paragraphs in a paragraph group if (pars_[pit2].layout().isParagraphGroup() + && pars_[pit2].layout().labeltype != LABEL_NO_LABEL && !text_.isFirstInSequence(pit2)) ++prev_depth; } @@ -302,6 +304,7 @@ void RowPainter::paintDepthBar() const next_depth = pars_[pit2].getDepth(); // We also mark follow-up paragraphs in a paragraph group if (pars_[pit2].layout().isParagraphGroup() + && pars_[pit2].layout().labeltype != LABEL_NO_LABEL && !text_.isFirstInSequence(pit2)) ++next_depth; }