mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
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:
parent
6a35e705a4
commit
67a2b3f28f
@ -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_)
|
||||
|
Loading…
Reference in New Issue
Block a user