break;
}
}
- // emergency exit:
- if (i + 1 < last)
- break;
+ // emergency exit:
+ if (i + 1 < last)
+ break;
}
InsetOld * in = pit->getInset(i);
case LYX_ALIGN_BLOCK:
{
int const ns = numberOfSeparators(*pit, *rit);
- RowList::iterator next_row = boost::next(rit);
bool disp_inset = false;
- if (next_row != pit->rows.end()) {
- InsetOld * in = pit->getInset(next_row->pos());
+ if (rit->end() < pit->size()) {
+ InsetOld * in = pit->getInset(rit->end());
if (in)
disp_inset = in->display();
}
// display inset... then stretch it
if (ns
&& rit->end() < pit->size()
- && !pit->isNewline(next_row->pos() - 1)
+ && !pit->isNewline(rit->end())
&& !disp_inset
) {
fill_separator = w / ns;