]> git.lyx.org Git - features.git/commitdiff
Fix bug #7256. Reduce space around inset buttons by a pixel on each side.
authorRichard Heck <rgheck@comcast.net>
Fri, 9 Dec 2011 15:52:18 +0000 (15:52 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 9 Dec 2011 15:52:18 +0000 (15:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40455 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/RenderButton.cpp
status.20x

index 9d080b8df747280ff186646094bb8afd94768e67..06fc653da731ae3cb8d7a2c8f062aecc7606a636 100644 (file)
@@ -51,7 +51,7 @@ void RenderButton::metrics(MetricsInfo &, Dimension & dim) const
        else
                fm.rectText(text_, dim.wid, dim.asc, dim.des);
 
-       dim.wid += 4;
+       dim.wid += 2;
        dim_ = dim;
 }
 
@@ -64,9 +64,9 @@ void RenderButton::draw(PainterInfo & pi, int x, int y) const
        font.decSize();
 
        if (editable_) {
-               pi.pain.buttonText(x + 2, y, text_, font, renderState());
+               pi.pain.buttonText(x + 1, y, text_, font, renderState());
        } else {
-               pi.pain.rectText(x + 2, y, text_, font,
+               pi.pain.rectText(x + 1, y, text_, font,
                                 Color_commandbg, Color_commandframe);
        }
 }
index 86593c528c93947624f49279d5cb305224269112..77b1f7eaae80fdd30ea237af3f384ae0bdaeb147 100644 (file)
@@ -44,6 +44,9 @@ What's new
 - Clarify what the user can do when hyperref is provided by the document
   class (bug 6293).
 
+- Slightly reduced space around inset buttons, to make it clearer when
+  there is a real space there (bug 7256).
+
 
 * DOCUMENTATION AND LOCALIZATION