]> git.lyx.org Git - features.git/commitdiff
Limit 761a542551bc9 to the case where we have a label.
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 2 Jan 2018 17:05:43 +0000 (18:05 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 2 Jan 2018 17:05:43 +0000 (18:05 +0100)
src/RowPainter.cpp

index 69b480d185ba8ce9b547b64da65d7588e45e4d48..86ddb30f3bf976a72e608fee1ed13ecfb29b78a7 100644 (file)
@@ -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;
        }