diff options
author | hypnotoad <yoda@etoyoc.com> | 2014-08-27 14:17:16 (GMT) |
---|---|---|
committer | hypnotoad <yoda@etoyoc.com> | 2014-08-27 14:17:16 (GMT) |
commit | b74be15dfe89ba7b49da2db5b27286e432b2e0d3 (patch) | |
tree | 03e3e3eb699022451be812b0778b4d2170de7549 | |
parent | d07eb9d0d067d0fb074f4a44211ea8fb696d6eec (diff) | |
download | tk-b74be15dfe89ba7b49da2db5b27286e432b2e0d3.zip tk-b74be15dfe89ba7b49da2db5b27286e432b2e0d3.tar.gz tk-b74be15dfe89ba7b49da2db5b27286e432b2e0d3.tar.bz2 |
dgp's constant comparison fix
-rw-r--r-- | macosx/tkMacOSXButton.c | 3 |
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); |