summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXButton.c
diff options
context:
space:
mode:
authorhypnotoad <yoda@etoyoc.com>2014-08-27 14:17:16 (GMT)
committerhypnotoad <yoda@etoyoc.com>2014-08-27 14:17:16 (GMT)
commit6f94865121c05acf2559f1edbd66914b04d9b189 (patch)
tree03e3e3eb699022451be812b0778b4d2170de7549 /macosx/tkMacOSXButton.c
parenta005af2cae512fc901d06236dc97190523de6bb5 (diff)
downloadtk-6f94865121c05acf2559f1edbd66914b04d9b189.zip
tk-6f94865121c05acf2559f1edbd66914b04d9b189.tar.gz
tk-6f94865121c05acf2559f1edbd66914b04d9b189.tar.bz2
dgp's constant comparison fix
Diffstat (limited to 'macosx/tkMacOSXButton.c')
-rw-r--r--macosx/tkMacOSXButton.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c
index 9250884..bd5cedd 100644
--- a/macosx/tkMacOSXButton.c
+++ b/macosx/tkMacOSXButton.c
@@ -376,6 +376,9 @@ NSRect TkMacOSXGetButtonFrame(
MacButton *macButtonPtr = (MacButton *) butPtr;
Tk_Window tkwin = butPtr->tkwin;
TkWindow *winPtr = (TkWindow *) tkwin;
+ if(tkwin==0xffffffff || tkwin==0xffffffff00000000) {
+ return NSZeroRect;
+ }
if (tkwin) {
MacDrawable *macWin = (MacDrawable *) winPtr->window;
NSView *view = TkMacOSXDrawableView(macWin);