From 2582cc24ab7ba7d6161df36bc023faf834c6c4c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Sat, 11 Sep 2010 16:16:59 +0000 Subject: [PATCH] rowpainter.cpp: revert a hack git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35342 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/rowpainter.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/rowpainter.cpp b/src/rowpainter.cpp index ba3d476f42..2850c39d94 100644 --- a/src/rowpainter.cpp +++ b/src/rowpainter.cpp @@ -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. -- 2.39.2