diff options
author | seandeelywoods <seandeelywoods@noemail.net> | 2014-08-27 14:17:16 (GMT) |
---|---|---|
committer | seandeelywoods <seandeelywoods@noemail.net> | 2014-08-27 14:17:16 (GMT) |
commit | b1342c679af66bb7cd7ec07876db4ec4a126c714 (patch) | |
tree | 03e3e3eb699022451be812b0778b4d2170de7549 /macosx/tkMacOSXButton.c | |
parent | 8d245e5cd722fa1b299de1e2345ca167d414457f (diff) | |
download | tk-b1342c679af66bb7cd7ec07876db4ec4a126c714.zip tk-b1342c679af66bb7cd7ec07876db4ec4a126c714.tar.gz tk-b1342c679af66bb7cd7ec07876db4ec4a126c714.tar.bz2 |
dgp's constant comparison fix
FossilOrigin-Name: 7b6aff0101ab8df5ea308108d8aec2de4715c2f9
Diffstat (limited to 'macosx/tkMacOSXButton.c')
-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); |