From 96ff56c42122f376e9e6a1324c168dc949c3dc33 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 13 Oct 2012 09:33:39 +0200 Subject: [PATCH] Fix non-NLS compile error for XFontStruct --- xboard.c | 2 +- xoptions.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xboard.c b/xboard.c index c97ca69..1062885 100644 --- a/xboard.c +++ b/xboard.c @@ -1454,7 +1454,7 @@ XBoard square size (hint): %d\n\ #if ENABLE_NLS &clockFontSet); #else - &clockFonStruct); + clockFontStruct); #endif boardWidget = optList[W_BOARD].handle; menuBarWidget = optList[W_MENU].handle; diff --git a/xoptions.c b/xoptions.c index b95cb22..08e18a0 100644 --- a/xoptions.c +++ b/xoptions.c @@ -883,7 +883,7 @@ GenericPopUp (Option *option, char *title, DialogClass dlgNr, DialogClass parent #if ENABLE_NLS if(option[i].choice) XtSetArg(args[j], XtNfontSet, *(XFontSet*)option[i].choice), j++; #else - if(option[i].choice) XtSetArg(args[j], XtNfont, *(XFontStruct*)option[i].choice), j++; + if(option[i].choice) XtSetArg(args[j], XtNfont, (XFontStruct*)option[i].choice), j++; #endif XtSetArg(args[j], XtNresizable, False); j++; XtSetArg(args[j], XtNjustify, XtJustifyLeft); j++; -- 1.7.0.4