From 60082806a890461944c2f6b5d424ec659b23001a Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Tue, 29 Jul 2014 15:03:04 +0200 Subject: [PATCH] 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. --- dialogs.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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") }, -- 1.7.0.4