From 09795a01ef859f072920de9df974d1b03b9ab9a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 28 Dec 2016 20:24:50 +0100 Subject: New upstream version 4.2.4a --- app/bin/chotbar.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'app/bin/chotbar.c') diff --git a/app/bin/chotbar.c b/app/bin/chotbar.c index b430f61..f138cbb 100644 --- a/app/bin/chotbar.c +++ b/app/bin/chotbar.c @@ -1,8 +1,5 @@ -/* - * $Header: /home/dmarkle/xtrkcad-fork-cvs/xtrkcad/app/bin/chotbar.c,v 1.4 2009-10-15 03:54:32 dspagnol Exp $ - * +/** \file chotbar.c * HOT BAR - * */ /* XTrkCad - Model Railroad CAD @@ -296,13 +293,13 @@ EXPORT void HotBarCancel( void ) HotBarHighlight( hotBarCurrSelect ); hotBarCurrSelect = -1; } - + static BOOL_T HotBarSelectPlayback( char * line ) { int inx; hotBarMap_t * tbm; - while (*line && isspace(*line) ) line++; + while (*line && isspace((unsigned char)*line) ) line++; for ( inx=0; inxproc( HB_FULLTITLE, tbm->context, NULL, NULL ), line) == 0) { @@ -355,7 +352,7 @@ EXPORT void AddHotBarElement( wMenuListAdd( hotBarML, hotBarMLcnt++, contentsLabel, (void*)(intptr_t)hotBarMap_da.cnt ); strncpy( curContentsLabel, contentsLabel, sizeof curContentsLabel ); } - + if (barScale <= 0) { if (isTrack) barScale = (trackGauge>0.1)?trackGauge*24:10; @@ -381,7 +378,7 @@ EXPORT void AddHotBarElement( tbm->labelW = textsize.x+5/hotBarD.dpi; if ( tbm->labelW > tbm->w ) { tbm->w = tbm->labelW; - } + } } hotBarWidth += tbm->w; } -- cgit v1.2.3