Fix bug #7256. Reduce space around inset buttons by a pixel on each side.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40454 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-12-09 15:36:53 +00:00
parent fe8c185a6e
commit 2d8d85f47e

View File

@ -51,7 +51,7 @@ void RenderButton::metrics(MetricsInfo &, Dimension & dim) const
else else
fm.rectText(text_, dim.wid, dim.asc, dim.des); fm.rectText(text_, dim.wid, dim.asc, dim.des);
dim.wid += 4; dim.wid += 2;
dim_ = dim; dim_ = dim;
} }
@ -64,9 +64,9 @@ void RenderButton::draw(PainterInfo & pi, int x, int y) const
font.decSize(); font.decSize();
if (editable_) { if (editable_) {
pi.pain.buttonText(x + 2, y, text_, font, renderState()); pi.pain.buttonText(x + 1, y, text_, font, renderState());
} else { } else {
pi.pain.rectText(x + 2, y, text_, font, pi.pain.rectText(x + 1, y, text_, font,
Color_commandbg, Color_commandframe); Color_commandbg, Color_commandframe);
} }
} }