Author: echatellier Date: 2013-12-01 22:26:28 +0100 (Sun, 01 Dec 2013) New Revision: 3864 Url: http://forge.codelutin.com/projects/isis-fish/repository/revisions/3864 Log: Always set double value instead of string Modified: branches/4.0.1/src/main/java/fr/ifremer/isisfish/ui/sensitivity/wizard/ContinuousDistributionPanel.java Modified: branches/4.0.1/src/main/java/fr/ifremer/isisfish/ui/sensitivity/wizard/ContinuousDistributionPanel.java =================================================================== --- branches/4.0.1/src/main/java/fr/ifremer/isisfish/ui/sensitivity/wizard/ContinuousDistributionPanel.java 2013-12-01 21:25:30 UTC (rev 3863) +++ branches/4.0.1/src/main/java/fr/ifremer/isisfish/ui/sensitivity/wizard/ContinuousDistributionPanel.java 2013-12-01 21:26:28 UTC (rev 3864) @@ -5,7 +5,7 @@ * $Id$ * $HeadURL$ * %% - * Copyright (C) 2012 Ifremer, Codelutin, Chatellier Eric + * Copyright (C) 2012, 2013 Ifremer, Codelutin, Chatellier Eric * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as @@ -310,7 +310,9 @@ if (comp instanceof MatrixPanelEditor) { domain.addDistributionParam(param.getName(), ((MatrixPanelEditor)comp).getMatrix()); } else { - domain.addDistributionParam(param.getName(), ((JTextComponent)comp).getText().trim()); + // XXX echatellier 20131201 : always double type ? + String strValue = ((JTextComponent)comp).getText().trim(); + domain.addDistributionParam(param.getName(), Double.parseDouble(strValue)); } paramComponentIndex++;
participants (1)
-
echatellier@users.forge.codelutin.com