From ff5f98be5119026f981b71ecdfd7ee2d8195d447 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 26 Apr 2006 13:36:12 +0000 Subject: [PATCH] * text.C (numberOfHfills): do not forget to count the last hfill (bug 2509). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13748 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/text.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text.C b/src/text.C index e85a5b4c7a..3da5249604 100644 --- a/src/text.C +++ b/src/text.C @@ -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! -- 2.39.5