Fix text frame drawing.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20071 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-09-05 14:19:52 +00:00
parent 6a35e705a4
commit 67a2b3f28f

View File

@ -188,8 +188,8 @@ void InsetText::draw(PainterInfo & pi, int x, int y) const
if (drawFrame_ || pi.full_repaint) {
int const w = hasFixedWidth() ?
tm.maxWidth() : tm.width() + 2 * border_;
int const a = tm.ascent() + border_;
int const h = a + tm.descent() + border_;
int const a = border_;
int const h = a + tm.height() + border_;
if (pi.full_repaint)
pi.pain.fillRectangle(x, y - a, w, h, backgroundColor());
if (drawFrame_)