rowpainter.cpp: revert a hack

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35342 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Uwe Stöhr 2010-09-11 16:16:59 +00:00
parent 379eba512b
commit 2582cc24ab

View 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.