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/doption.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'app/bin/doption.c') diff --git a/app/bin/doption.c b/app/bin/doption.c index 9413b5e..b1533c9 100644 --- a/app/bin/doption.c +++ b/app/bin/doption.c @@ -1,5 +1,5 @@ -/* - * $Header: /home/dmarkle/xtrkcad-fork-cvs/xtrkcad/app/bin/doption.c,v 1.8 2009-10-15 04:21:15 dspagnol Exp $ +/** \file doption.c + * Option dialogs */ /* XTrkCad - Model Railroad CAD @@ -405,6 +405,9 @@ typedef struct { long fmt; } dstFmts_t; static dstFmts_t englishDstFmts[] = { + { N_("999.999999"), DISTFMT_FMT_NONE|DISTFMT_FRACT_NUM|6 }, + { N_("999.99999"), DISTFMT_FMT_NONE|DISTFMT_FRACT_NUM|5 }, + { N_("999.9999"), DISTFMT_FMT_NONE|DISTFMT_FRACT_NUM|4 }, { N_("999.999"), DISTFMT_FMT_NONE|DISTFMT_FRACT_NUM|3 }, { N_("999.99"), DISTFMT_FMT_NONE|DISTFMT_FRACT_NUM|2 }, { N_("999.9"), DISTFMT_FMT_NONE|DISTFMT_FRACT_NUM|1 }, @@ -437,10 +440,15 @@ static dstFmts_t metricDstFmts[] = { { NULL, 0 }, { NULL, 0 }, { NULL, 0 }, + { NULL, 0 }, + { NULL, 0 }, + { NULL, 0 }, { NULL, 0 } }; static dstFmts_t *dstFmts[] = { englishDstFmts, metricDstFmts }; - +/** + * Load the selection list for number formats with the appropriate list of variants. + */ static void LoadDstFmtList( void ) { @@ -466,14 +474,6 @@ static void UpdatePrefD( void ) for ( inx = 0; inx