From: H.G.Muller Date: Sat, 5 Apr 2014 21:00:17 +0000 (+0200) Subject: Fix crash on opening Tags window Xaw X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=3c1691e6776c9e91d1752c0d38d4dd2d616fce07 Fix crash on opening Tags window Xaw Suppressing the optional book button made the Xaw generic popup crash, because the following button had the SAME_ROW modality, and was thus positioned w.r.t. a non-existent widget. --- diff --git a/dialogs.c b/dialogs.c index 0c430dd..c8505ee 100644 --- a/dialogs.c +++ b/dialogs.c @@ -1218,6 +1218,7 @@ NewTagsPopup (char *text, char *msg) char *title = bookUp ? _("Edit book") : _("Tags"); tagsOptions[2].type = bookUp ? Button : Skip; + tagsOptions[3].min = bookUp ? SAME_ROW : 0; if(DialogExists(TagsDlg)) { // if already exists, alter title and content SetWidgetText(&tagsOptions[1], text, TagsDlg); SetDialogTitle(TagsDlg, title);