From: H.G.Muller Date: Tue, 29 Jul 2014 13:03:04 +0000 (+0200) Subject: Fix crash on double-click in Game List Tags X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=60082806a890461944c2f6b5d424ec659b23001a;p=xboard.git Fix crash on double-click in Game List Tags A double-click in the Game List Tags listbox has no function, but it crashed XBoard, because the textValue field of teh ListBox Option definition, supposed to contain a pointer to the user-supplied handler, contained a pointer to an empty string. --- diff --git a/dialogs.c b/dialogs.c index c8505ee..23f8633 100644 --- a/dialogs.c +++ b/dialogs.c @@ -2107,7 +2107,7 @@ static void GLT_Button P((int n)); static int GLT_OK P((int n)); static Option listOptions[] = { -{300, LR|TB, 200, NULL, (void*) strings, "", NULL, ListBox, "" }, // For GTK we need to specify a height, as default would just show 3 lines +{300, LR|TB, 200, NULL, (void*) strings, NULL, NULL, ListBox, "" }, // For GTK we need to specify a height, as default would just show 3 lines { 0, 0, 0, NULL, (void*) &GLT_Button, NULL, NULL, Button, N_("factory") }, { 0, SAME_ROW, 0, NULL, (void*) &GLT_Button, NULL, NULL, Button, N_("up") }, { 0, SAME_ROW, 0, NULL, (void*) &GLT_Button, NULL, NULL, Button, N_("down") },