]> git.lyx.org Git - lyx.git/commitdiff
* text.C (numberOfHfills): do not forget to count the last hfill
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 26 Apr 2006 13:36:12 +0000 (13:36 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 26 Apr 2006 13:36:12 +0000 (13:36 +0000)
(bug 2509).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13748 a592a061-630c-0410-9148-cb99ea01b6c8

src/text.C

index e85a5b4c7a6a0e39ca59c92594a27762e2be89a9..3da524960475e44a07fd2b3e6cdf3522f7fb19da 100644 (file)
@@ -135,7 +135,7 @@ int numberOfLabelHfills(Paragraph const & par, Row const & row)
 
 int numberOfHfills(Paragraph const & par, Row const & row)
 {
-       pos_type const last = row.endpos() - 1;
+       pos_type const last = row.endpos();
        pos_type first = row.pos();
 
        // hfill *DO* count at the beginning of paragraphs!