summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXButton.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-30 08:52:15 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-03-30 08:52:15 (GMT)
commit59c86794ab87fad53c4e4dc350dfaf150edda944 (patch)
tree6c7bf009a0cff0ef2817f19c0efaaf86a562e9d9 /macosx/tkMacOSXButton.c
parent0ee97cbae8a5bf340ef97a929e700ee24c75f716 (diff)
downloadtk-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.c2
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) {