diff options
author | das <das> | 2007-07-02 13:05:13 (GMT) |
---|---|---|
committer | das <das> | 2007-07-02 13:05:13 (GMT) |
commit | 76be1c5efbf561516073d13eb7807b7c1f6876c6 (patch) | |
tree | 82725789edf0a3a67ec75cf082af8681148438a0 /macosx/tkMacOSXDraw.c | |
parent | 62be4daee8881fef41d16c205afb1a81cca2f34e (diff) | |
download | tk-76be1c5efbf561516073d13eb7807b7c1f6876c6.zip tk-76be1c5efbf561516073d13eb7807b7c1f6876c6.tar.gz tk-76be1c5efbf561516073d13eb7807b7c1f6876c6.tar.bz2 |
* 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macosx/tkMacOSXDraw.c b/macosx/tkMacOSXDraw.c index cda02aa..d28033b 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.27 2007/06/29 03:20:01 das Exp $ + * RCS: @(#) $Id: tkMacOSXDraw.c,v 1.28 2007/07/02 13:05:14 das Exp $ */ #include "tkMacOSXPrivate.h" @@ -1630,7 +1630,7 @@ TkMacOSXRestoreDrawingContext(TkMacOSXDrawingContext *dc) if (dc->port) { ChkErr(QDEndCGContext, dc->port, &(dc->context)); } - } else { + } else if (dc->port) { if (!tkPictureIsOpen) { HidePen(); } |