summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXDraw.c
diff options
context:
space:
mode:
authordas <das>2007-07-02 13:06:13 (GMT)
committerdas <das>2007-07-02 13:06:13 (GMT)
commitf6c83cb452e565fe1f115dcdd68ad6df77c5d1e4 (patch)
tree5fc7af8806bad8c68260c24f0cb060fc3724cfbe /macosx/tkMacOSXDraw.c
parentffafac42d2223ae0a476ca5875678140e730095d (diff)
downloadtk-f6c83cb452e565fe1f115dcdd68ad6df77c5d1e4.zip
tk-f6c83cb452e565fe1f115dcdd68ad6df77c5d1e4.tar.gz
tk-f6c83cb452e565fe1f115dcdd68ad6df77c5d1e4.tar.bz2
* macosx/tkMacOSXColor.c: add debug messages for unknown pixel values.
* macosx/tkMacOSXDraw.c (TkMacOSXRestoreDrawingContext): don't restore port state if it wasn't altered by TkMacOSXSetupDrawingContext().
Diffstat (limited to 'macosx/tkMacOSXDraw.c')
-rw-r--r--macosx/tkMacOSXDraw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c
index 6809be1..d978ff5 100644
--- a/macosx/tkMacOSXDraw.c
+++ b/macosx/tkMacOSXDraw.c
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMacOSXDraw.c,v 1.2.2.27 2007/06/29 03:22:01 das Exp $
+ * RCS: @(#) $Id: tkMacOSXDraw.c,v 1.2.2.28 2007/07/02 13:06:14 das Exp $
*/
#include "tkMacOSXPrivate.h"
@@ -1632,7 +1632,7 @@ TkMacOSXRestoreDrawingContext(TkMacOSXDrawingContext *dc)
if (dc->port) {
ChkErr(QDEndCGContext, dc->port, &(dc->context));
}
- } else {
+ } else if (dc->port) {
if (!tkPictureIsOpen) {
HidePen();
}