]> git.lyx.org Git - lyx.git/commitdiff
rowpainter.cpp: revert a hack
authorUwe Stöhr <uwestoehr@web.de>
Sat, 11 Sep 2010 16:16:59 +0000 (16:16 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sat, 11 Sep 2010 16:16:59 +0000 (16:16 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35342 a592a061-630c-0410-9148-cb99ea01b6c8

src/rowpainter.cpp

index ba3d476f42fe7f2d756d1dfc53f82d841b8ea2f0..2850c39d94d360537c2cfbac1cd3789193667f6a 100644 (file)
@@ -103,10 +103,8 @@ void RowPainter::paintInset(Inset const * inset, pos_type const pos)
        // requires a full repaint
        bool pi_full_repaint = pi_.full_repaint;
 
-       // FIXME: this is a hack to get the mi.base.textwidth but
-       // text_metrics_.width() is 1.0857 * mi.base.textwidth
-       // ( 1.0857 = 684 / 630 )
-       pi_.base.textwidth = int(0.92 * text_metrics_.width());
+       // FIXME: text_metrics_.width() is only about 1.0857 * mi.base.textwidth
+       pi_.base.textwidth = text_metrics_.width();
 
        // FIXME: We should always use font, see documentation of
        // noFontChange() in Inset.h.