diff options
author | dgp@users.sourceforge.net <dgp> | 2004-09-24 17:35:46 (GMT) |
---|---|---|
committer | dgp@users.sourceforge.net <dgp> | 2004-09-24 17:35:46 (GMT) |
commit | fa00618cf8ed4201ae19f1f6547d7b83475f0f87 (patch) | |
tree | 55666d57e381bc4e52809c8498d13eaf1716f1c8 | |
parent | fbeaa7da54058d8d9dc978b6890415d76975f0c4 (diff) | |
download | tk-fa00618cf8ed4201ae19f1f6547d7b83475f0f87.zip tk-fa00618cf8ed4201ae19f1f6547d7b83475f0f87.tar.gz tk-fa00618cf8ed4201ae19f1f6547d7b83475f0f87.tar.bz2 |
* generic/tkCursor.c: Add missing initialization in debug routine.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | generic/tkCursor.c | 5 |
2 files changed, 8 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2004-09-24 Don Porter <dgp@users.sourceforge.net> + + * generic/tkCursor.c: Add missing initialization in debug routine. + 2004-09-22 Jeff Hobbs <jeffh@ActiveState.com> * win/tkWinInt.h (TkWinDisplayChanged): added decl diff --git a/generic/tkCursor.c b/generic/tkCursor.c index 4fde82f..daa831b 100644 --- a/generic/tkCursor.c +++ b/generic/tkCursor.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkCursor.c,v 1.9.2.1 2003/04/18 21:56:59 hobbs Exp $ + * RCS: @(#) $Id: tkCursor.c,v 1.9.2.2 2004/09/24 17:35:48 dgp Exp $ */ #include "tkPort.h" @@ -848,6 +848,9 @@ TkDebugCursor(tkwin, name) Tcl_Obj *resultPtr, *objPtr; TkDisplay *dispPtr = ((TkWindow *) tkwin)->dispPtr; + if (!dispPtr->cursorInit) { + CursorInit(dispPtr); + } resultPtr = Tcl_NewObj(); hashPtr = Tcl_FindHashEntry(&dispPtr->cursorNameTable, name); if (hashPtr != NULL) { |