]> git.lyx.org Git - features.git/commitdiff
undo partly 16444/16452
authorPeter Kümmel <syntheticpp@gmx.net>
Thu, 4 Jan 2007 19:46:03 +0000 (19:46 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Thu, 4 Jan 2007 19:46:03 +0000 (19:46 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16512 a592a061-630c-0410-9148-cb99ea01b6c8

src/TextMetrics.C

index 9b9876d3b79127e3483e016e4262d7e9a6eac269..85a90529b6fd79e1579f604f992d42baced58046 100644 (file)
@@ -85,18 +85,16 @@ int numberOfLabelHfills(Paragraph const & par, Row const & row)
 
 int numberOfHfills(Paragraph const & par, Row const & row)
 {
-       pos_type last = row.endpos();
+       pos_type const last = row.endpos();
        pos_type first = row.pos();
-       pos_type const par_size = par.size();
 
        // hfill *DO* count at the beginning of paragraphs!
        if (first) {
-               while (first < last && first < par_size && par.isHfill(first))
+               while (first < last && par.isHfill(first))
                        ++first;
        }
 
        first = max(first, par.beginOfBody());
-       last = min(last, par_size);
 
        int n = 0;
        for (pos_type p = first; p < last; ++p) {