Michael Gerz schrieb:
Peter Kümmel schrieb:
bool Paragraph::hfillExpansion(Row const & row, pos_type pos) const
{
    if (!isHfill(pos))
        return false;

    // at the end of a row it does not count
    // unless another hfill exists on the line
    if (pos >= row.endpos()) {
        for (pos_type i = row.pos(); i < pos && !isHfill(i); ++i)
            return false;
    }


What's the idea of a return in a for loop?

Peter

How about this patch? It fixes at least one more bug (check of end-of-row).
Fixed in
 http://www.lyx.org/trac/file/lyx-devel/trunk/src/paragraph.C?rev=16566
and
 http://www.lyx.org/trac/file/lyx-devel/trunk/src/paragraph.C?rev=16567

Michael

Reply via email to