diff options
author | yoda@etoyoc.com <hypnotoad> | 2014-08-27 14:17:16 (GMT) |
---|---|---|
committer | yoda@etoyoc.com <hypnotoad> | 2014-08-27 14:17:16 (GMT) |
commit | c188fbf35aa24bdaec16c0c983e6cf179699849e (patch) | |
tree | 5dc12521cd3fb9099cd46cd6061b80f4aabb2aaf /macosx | |
parent | a10937a33382e0c56f1dfb812d0afa6f742c3cb4 (diff) | |
download | tk-c188fbf35aa24bdaec16c0c983e6cf179699849e.zip tk-c188fbf35aa24bdaec16c0c983e6cf179699849e.tar.gz tk-c188fbf35aa24bdaec16c0c983e6cf179699849e.tar.bz2 |
dgp's constant comparison fix
Diffstat (limited to 'macosx')
-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); |