diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-03-30 08:52:15 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-03-30 08:52:15 (GMT) |
commit | 59c86794ab87fad53c4e4dc350dfaf150edda944 (patch) | |
tree | 6c7bf009a0cff0ef2817f19c0efaaf86a562e9d9 /macosx/tkMacOSXButton.c | |
parent | 0ee97cbae8a5bf340ef97a929e700ee24c75f716 (diff) | |
download | tk-59c86794ab87fad53c4e4dc350dfaf150edda944.zip tk-59c86794ab87fad53c4e4dc350dfaf150edda944.tar.gz tk-59c86794ab87fad53c4e4dc350dfaf150edda944.tar.bz2 |
Fix [3874c489cb44012a]: Test butPtr->image against NULL instead of None
Diffstat (limited to 'macosx/tkMacOSXButton.c')
-rw-r--r-- | macosx/tkMacOSXButton.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXButton.c b/macosx/tkMacOSXButton.c index 8a121ee..f008736 100644 --- a/macosx/tkMacOSXButton.c +++ b/macosx/tkMacOSXButton.c @@ -465,7 +465,7 @@ DrawButtonImageAndText( pixmap = (Pixmap) Tk_WindowId(tkwin); - if (butPtr->image != None) { + if (butPtr->image != NULL) { Tk_SizeOfImage(butPtr->image, &width, &height); haveImage = 1; } else if (butPtr->bitmap != None) { |