summaryrefslogtreecommitdiffstats
path: root/win/tkWinButton.c
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2002-09-03 01:05:10 (GMT)
committerhobbs <hobbs@noemail.net>2002-09-03 01:05:10 (GMT)
commit4b2a1024564f7840df9f7aad0acffebaa8a64acd (patch)
tree7b2dd96c03b7db69b815f9125b3ecf347b434563 /win/tkWinButton.c
parent85ef4aa07f965c03b1041c0ac80a0c693701a84d (diff)
downloadtk-4b2a1024564f7840df9f7aad0acffebaa8a64acd.zip
tk-4b2a1024564f7840df9f7aad0acffebaa8a64acd.tar.gz
tk-4b2a1024564f7840df9f7aad0acffebaa8a64acd.tar.bz2
correction to r1.19 fix to only incr inset when no image is used
FossilOrigin-Name: 3cfb6a2490be5db3d9844c5dcbf29a3e0175a50a
Diffstat (limited to 'win/tkWinButton.c')
-rw-r--r--win/tkWinButton.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/win/tkWinButton.c b/win/tkWinButton.c
index e004a3c..1f050aa 100644
--- a/win/tkWinButton.c
+++ b/win/tkWinButton.c
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinButton.c,v 1.19 2002/09/02 23:32:35 hobbs Exp $
+ * RCS: @(#) $Id: tkWinButton.c,v 1.20 2002/09/03 01:05:11 hobbs Exp $
*/
#define OEMRESOURCE
@@ -896,10 +896,12 @@ TkpComputeButtonGeometry(butPtr)
width -= 10;
height -= 10;
- /*
- * Extra inset for the focus ring.
- */
- butPtr->inset += 1;
+ if (!haveImage) {
+ /*
+ * Extra inset for the focus ring.
+ */
+ butPtr->inset += 1;
+ }
break;
}