From 92ba67a9fbaf66d42f78ff0cdd36164d4369cc16 Mon Sep 17 00:00:00 2001 From: H.G.Muller Date: Tue, 5 Apr 2016 22:07:27 +0200 Subject: [PATCH] Fix clipping of menu texts after sizing When tinyLayout = 0 the texts should not be clipped at all, rather than to a single letter. --- gtk/xboard.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gtk/xboard.c b/gtk/xboard.c index f9163b8..3cac488 100644 --- a/gtk/xboard.c +++ b/gtk/xboard.c @@ -1709,7 +1709,7 @@ ReSize (WindowPlacement *wp) char text[MSG_SIZ]; for(h=1; mainOptions[h].type == DropDown; h++) { strncpy(text, _(mainOptions[h].name), MSG_SIZ); - text[clip + (text[clip-1] == '_')] = NULLCHAR; + if(clip != 1) text[clip + (text[clip-1] == '_')] = NULLCHAR; gtk_menu_item_set_label((GtkMenuItem *) mainOptions[h].handle, text); } } -- 1.7.0.4