diff options
author | das <das> | 2009-04-10 15:54:44 (GMT) |
---|---|---|
committer | das <das> | 2009-04-10 15:54:44 (GMT) |
commit | bd7164b54a88446751a9455b9be796056dd916d8 (patch) | |
tree | 10db0354e88a62eea078a19b7dbe4d847d97a0d4 | |
parent | 162e97f430fc274905a600f204f66b04ac92a574 (diff) | |
download | tk-bd7164b54a88446751a9455b9be796056dd916d8.zip tk-bd7164b54a88446751a9455b9be796056dd916d8.tar.gz tk-bd7164b54a88446751a9455b9be796056dd916d8.tar.bz2 |
* generic/tkBind.c (HandleEventGenerate): ensure window exists before
generating an event for it (fixes testsuite crash).
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | generic/tkBind.c | 3 |
2 files changed, 12 insertions, 1 deletions
@@ -1,3 +1,13 @@ +2008-04-10 Daniel Steffen <das@users.sourceforge.net> + + * generic/tkBind.c (HandleEventGenerate): ensure window exists before + generating an event for it (fixes testsuite crash). + + * generic/tkTextBTree.c (TkBTreeDeleteIndexRange): add bounds check + to startEnd array access (fixes testsuite crash). + + * tests/unixFont.test: only use xlsfonts with X11 windowingsystem. + 2009-04-10 Donal K. Fellows <dkf@users.sf.net> * generic/tkCanvPs.c (TkPostscriptInfo): [Bug 1466509]: Eliminate old diff --git a/generic/tkBind.c b/generic/tkBind.c index c86e1a8..94b961c 100644 --- a/generic/tkBind.c +++ b/generic/tkBind.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: tkBind.c,v 1.45 2007/12/13 15:24:13 dgp Exp $ + * RCS: @(#) $Id: tkBind.c,v 1.45.2.1 2009/04/10 15:54:44 das Exp $ */ #include "tkInt.h" @@ -3359,6 +3359,7 @@ HandleEventGenerate( event.xany.serial = NextRequest(Tk_Display(tkwin)); event.xany.send_event = False; if (windowName[0]) { + Tk_MakeWindowExist(tkwin); event.xany.window = Tk_WindowId(tkwin); } else { event.xany.window = |