Backport fix for bug #7873.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40213 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-11-18 21:37:03 +00:00
parent 4c39562025
commit 2e21676cb2
2 changed files with 6 additions and 1 deletions

View File

@ -446,8 +446,11 @@ void Text::setLabelWidthStringToSequence(pit_type const par_offset,
depth_type const depth = pars_[offset].getDepth();
Layout const & layout = pars_[offset].layout();
for (pit_type pit = offset; pit != end; ++pit) {
while (pars_[pit].getDepth() > depth)
while (pars_[pit].getDepth() > depth) {
++pit;
if (pit == end)
return;
}
if (pars_[pit].getDepth() < depth)
return;
if (pars_[pit].layout() != layout)

View File

@ -265,6 +265,8 @@ What's new
- Sort formats under Document>Settings>Output (bug 7758).
- Fix crash when changing labelwidth (bug 7873).
* ADVANCED FIND AND REPLACE