From 67a2b3f28f4e2a40716ff0491eb82e8472e65a96 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Wed, 5 Sep 2007 14:19:52 +0000 Subject: [PATCH] Fix text frame drawing. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20071 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetText.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index a021235664..d6a01cc607 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -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_) -- 2.39.2