summaryrefslogtreecommitdiff
path: root/app/bin/dpricels.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2018-03-19 19:56:15 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2018-03-19 19:56:15 +0100
commit1542c122b3672fe83e027411ad2445772e2d0ed3 (patch)
treee535bc621bd7ffa9d5ce89e0d495df5d1c4ab6fd /app/bin/dpricels.c
parent773810e6583142d7d15263e6481c42aebed6d7f1 (diff)
parentd1a8285f818eb7e5c3d6a05709ea21a808490b8c (diff)
Update upstream source from tag 'upstream/5.1.0'
Update to upstream version '5.1.0' with Debian dir 93ca74b8b4602fce4c9c7740e0cfdde25f086673
Diffstat (limited to 'app/bin/dpricels.c')
-rw-r--r--app/bin/dpricels.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/app/bin/dpricels.c b/app/bin/dpricels.c
index 7e17121..87df88b 100644
--- a/app/bin/dpricels.c
+++ b/app/bin/dpricels.c
@@ -1,5 +1,5 @@
-/*
- * $Header: /home/dmarkle/xtrkcad-fork-cvs/xtrkcad/app/bin/dpricels.c,v 1.2 2008-01-20 23:29:15 mni77 Exp $
+/** \file dpricels.c
+ * Price List Dialog
*/
/* XTrkCad - Model Railroad CAD
@@ -19,16 +19,15 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#include <string.h>
-#include "track.h"
#include "compound.h"
+#include "custom.h"
#include "i18n.h"
-
-/*****************************************************************************
- *
- * Price List Dialog
- *
- */
+#include "layout.h"
+#include "messages.h"
+#include "param.h"
+#include "track.h"
static wWin_p priceListW;
@@ -115,8 +114,8 @@ static void PriceListChange( long changes )
priceListW == NULL || !wWinIsVisible( priceListW ) )
return;
wListClear( priceListSelL );
- to1 = TurnoutAdd( listLabels|LABEL_COST, curScaleInx, priceListSelL, NULL, -1 );
- to2 = StructAdd( listLabels|LABEL_COST, curScaleInx, priceListSelL, NULL );
+ to1 = TurnoutAdd( listLabels|LABEL_COST, GetLayoutCurScale(), priceListSelL, NULL, -1 );
+ to2 = StructAdd( listLabels|LABEL_COST, GetLayoutCurScale(), priceListSelL, NULL );
if (to1 == NULL)
to1 = to2;
priceListCurrent = NULL;