diff options
author | jingham <jingham> | 1999-03-22 06:43:41 (GMT) |
---|---|---|
committer | jingham <jingham> | 1999-03-22 06:43:41 (GMT) |
commit | 65f36b69d7d081ac143aa9ca5755b8c6c596db06 (patch) | |
tree | a36883347d3dda2d02f7d7975107c11080f3c94b | |
parent | 8148ef3eca76d6d3e5f743388b5296d8213d3541 (diff) | |
download | tk-65f36b69d7d081ac143aa9ca5755b8c6c596db06.zip tk-65f36b69d7d081ac143aa9ca5755b8c6c596db06.tar.gz tk-65f36b69d7d081ac143aa9ca5755b8c6c596db06.tar.bz2 |
Check the return value of TkMacGetColor, and don't set the color if it comes back false.
-rw-r--r-- | mac/tkMacFont.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mac/tkMacFont.c b/mac/tkMacFont.c index 79f6a38..9e76f8a 100644 --- a/mac/tkMacFont.c +++ b/mac/tkMacFont.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacFont.c,v 1.2 1998/09/14 18:23:35 stanton Exp $ + * RCS: @(#) $Id: tkMacFont.c,v 1.2.2.1 1999/03/22 06:43:41 jingham Exp $ */ #include <Windows.h> @@ -542,7 +542,7 @@ Tk_DrawChars( TextSize(fontPtr->size); TextFace(fontPtr->style); - if (TkSetMacColor(gc->foreground, &macColor) == true) { + if (TkSetMacColor(gc->foreground, &macColor)) { RGBForeColor(&macColor); } |