Fix bug #7873. Patch is sufficiently explanatory.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40212 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-11-18 21:34:40 +00:00
parent 14c10e40a8
commit eef5148a49

View File

@ -445,8 +445,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)