]> git.lyx.org Git - features.git/commitdiff
Fix bug 2029 (RtL space width)
authorMartin Vermeer <martin.vermeer@hut.fi>
Mon, 19 Sep 2005 11:18:20 +0000 (11:18 +0000)
committerMartin Vermeer <martin.vermeer@hut.fi>
Mon, 19 Sep 2005 11:18:20 +0000 (11:18 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10459 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/rowpainter.C

index b52baf592b3948f5cf1754254fb0d3759b22466c..37647aac68fbd88db3eda606e8145f04ee6d7723 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-19  Martin Vermeer  <martin.vermeer@hut.fi>
+
+       * rowpainter.C (paintText): fix RtL space width display bug (2029)
+
 2005-09-19  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
        * rowpainter.C (paintFirst): use a 'labeladdon' for TOP_* labels,
index 0cbaa1b8e42c30312c55df21384a0e9cde86dd7a..907a3c220e7c5b2cd9d7a4490380e74ad8069059 100644 (file)
@@ -627,7 +627,7 @@ void RowPainter::paintText()
                }
 
                const int width_pos =
-                       text_.singleWidth(par_, vpos, par_.getChar(vpos), font);
+                       text_.singleWidth(par_, pos, par_.getChar(pos), font);
 
                if (x_ + width_pos < 0) {
                        x_ += width_pos;