commit 9987adb2a76413d819efc2a113745ceb5e272f6f
Author: Juergen Spitzmueller <sp...@lyx.org>
Date:   Thu Feb 8 17:00:41 2018 +0100

    Revert "Mark follow-up paragraphs in a paragraph group as nested."
    
    This reverts commit 761a542551bc944c0efef0d123c2b71631d2652a.
---
 src/RowPainter.cpp |   18 +-----------------
 1 files changed, 1 insertions(+), 17 deletions(-)

diff --git a/src/RowPainter.cpp b/src/RowPainter.cpp
index d2dc86a..f093805 100644
--- a/src/RowPainter.cpp
+++ b/src/RowPainter.cpp
@@ -273,13 +273,7 @@ void RowPainter::paintAppendix() const
 
 void RowPainter::paintDepthBar() const
 {
-       depth_type depth = par_.getDepth();
-
-       // We also mark follow-up paragraphs in a paragraph group
-       if (par_.layout().isParagraphGroup()
-           && par_.layout().labeltype == LABEL_STATIC
-           && !text_.isFirstInSequence(row_.pit()))
-               ++depth;
+       depth_type const depth = par_.getDepth();
 
        if (depth <= 0)
                return;
@@ -290,11 +284,6 @@ void RowPainter::paintDepthBar() const
                if (row_.pos() == 0)
                        --pit2;
                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_STATIC
-                   && !text_.isFirstInSequence(pit2))
-                       ++prev_depth;
        }
 
        depth_type next_depth = 0;
@@ -303,11 +292,6 @@ void RowPainter::paintDepthBar() const
                if (row_.endpos() >= pars_[pit2].size())
                        ++pit2;
                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_STATIC
-                   && !text_.isFirstInSequence(pit2))
-                       ++next_depth;
        }
 
        for (depth_type i = 1; i <= depth; ++i) {

Reply via email to