diff options
author | hobbs <hobbs> | 2007-04-25 17:08:51 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 2007-04-25 17:08:51 (GMT) |
commit | abc05684f7a57f752b6974ff829586cea8d2bb4a (patch) | |
tree | fba740add642d6b69d259a655d276aca7affd1c7 /unix | |
parent | d1fb54010410ec545c26e5225e7f5b87eaa8b134 (diff) | |
download | tk-abc05684f7a57f752b6974ff829586cea8d2bb4a.zip tk-abc05684f7a57f752b6974ff829586cea8d2bb4a.tar.gz tk-abc05684f7a57f752b6974ff829586cea8d2bb4a.tar.bz2 |
* unix/tkUnixMenubu.c (TkpDisplayMenuButton): init width/height to 0
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tkUnixMenubu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/unix/tkUnixMenubu.c b/unix/tkUnixMenubu.c index c21608b..201e974 100644 --- a/unix/tkUnixMenubu.c +++ b/unix/tkUnixMenubu.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: tkUnixMenubu.c,v 1.8 2005/11/13 21:00:17 dkf Exp $ + * RCS: @(#) $Id: tkUnixMenubu.c,v 1.9 2007/04/25 17:08:51 hobbs Exp $ */ #include "tkMenubutton.h" @@ -76,10 +76,11 @@ TkpDisplayMenuButton( * warning. */ int y = 0; register Tk_Window tkwin = mbPtr->tkwin; - int width, height, fullWidth, fullHeight; + int fullWidth, fullHeight; int textXOffset, textYOffset; int imageWidth, imageHeight; int imageXOffset, imageYOffset; + int width = 0, height = 0; /* Image information that will be used to * restrict disabled pixmap as well */ int haveImage = 0, haveText = 0; |