From da57a6135eb75ab4fe7163b29f8625227eba3c33 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Wed, 3 Jan 2018 08:55:35 +0100 Subject: [PATCH] Amend 761a542551bc9 once more. As it is designed now, Static label is the only case that makes sense. --- src/RowPainter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp index 86ddb30f3b..3b4c76b6c6 100644 --- a/src/RowPainter.cpp +++ b/src/RowPainter.cpp @@ -276,7 +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 + && par_.layout().labeltype == LABEL_STATIC && !text_.isFirstInSequence(row_.pit())) ++depth; @@ -291,7 +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 + && pars_[pit2].layout().labeltype == LABEL_STATIC && !text_.isFirstInSequence(pit2)) ++prev_depth; } @@ -304,7 +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 + && pars_[pit2].layout().labeltype == LABEL_STATIC && !text_.isFirstInSequence(pit2)) ++next_depth; } -- 2.39.2