summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-09-24 17:36:22 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-09-24 17:36:22 (GMT)
commit1288aec6556dbe6a0a344ef7f0d4bc5d81e554a7 (patch)
tree014635c56baba34de70f706f5d4c3d28dd6aed57
parent46f87c9b9cda4cba54a8ff5c2bb3125106fe1a3b (diff)
downloadtk-1288aec6556dbe6a0a344ef7f0d4bc5d81e554a7.zip
tk-1288aec6556dbe6a0a344ef7f0d4bc5d81e554a7.tar.gz
tk-1288aec6556dbe6a0a344ef7f0d4bc5d81e554a7.tar.bz2
* generic/tkCursor.c: Add missing initialization in debug routine.
-rw-r--r--ChangeLog4
-rw-r--r--generic/tkCursor.c5
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 49e37d5..ec89021 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-09-24 Don Porter <dgp@users.sourceforge.net>
+
+ * generic/tkCursor.c: Add missing initialization in debug routine.
+
2004-09-24 Vince Darley <vincentdarley@users.sourceforge.net>
* library/text.tcl: corrected mousewheel scrolling [Bug 960190]
diff --git a/generic/tkCursor.c b/generic/tkCursor.c
index 13a707a..45dd96d 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.11 2004/01/13 02:06:00 davygrvy Exp $
+ * RCS: @(#) $Id: tkCursor.c,v 1.12 2004/09/24 17:36:22 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) {