mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Revert "Mark follow-up paragraphs in a paragraph group as nested."
This reverts commit 70d580fea7
.
This commit is contained in:
parent
0d82fd392f
commit
78911c7379
@ -285,13 +285,7 @@ void RowPainter::paintAppendix() const
|
|||||||
|
|
||||||
void RowPainter::paintDepthBar() const
|
void RowPainter::paintDepthBar() const
|
||||||
{
|
{
|
||||||
depth_type depth = par_.getDepth();
|
depth_type const 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;
|
|
||||||
|
|
||||||
if (depth <= 0)
|
if (depth <= 0)
|
||||||
return;
|
return;
|
||||||
@ -302,11 +296,6 @@ void RowPainter::paintDepthBar() const
|
|||||||
if (row_.pos() == 0)
|
if (row_.pos() == 0)
|
||||||
--pit2;
|
--pit2;
|
||||||
prev_depth = pars_[pit2].getDepth();
|
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;
|
depth_type next_depth = 0;
|
||||||
@ -315,11 +304,6 @@ void RowPainter::paintDepthBar() const
|
|||||||
if (row_.endpos() >= pars_[pit2].size())
|
if (row_.endpos() >= pars_[pit2].size())
|
||||||
++pit2;
|
++pit2;
|
||||||
next_depth = pars_[pit2].getDepth();
|
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) {
|
for (depth_type i = 1; i <= depth; ++i) {
|
||||||
|
Loading…
Reference in New Issue
Block a user