branch feature/8189 created (now 379048b)
This is an automated email from the git hooks/post-receive script. New change to branch feature/8189 in repository tutti. See https://gitlab.nuiton.org/codelutin/tutti.git at 379048b correction de la conversion gramme -> unité de la conf (fixes #8189) This branch includes the following new commits: new 379048b correction de la conversion gramme -> unité de la conf (fixes #8189) The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 379048bc4e66ae39e3ab4295a8154a5abcac319c Author: Kevin Morin <morin@codelutin.com> Date: Fri Mar 25 10:11:36 2016 +0100 correction de la conversion gramme -> unité de la conf (fixes #8189) -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/8189 in repository tutti. See https://gitlab.nuiton.org/codelutin/tutti.git commit 379048bc4e66ae39e3ab4295a8154a5abcac319c Author: Kevin Morin <morin@codelutin.com> Date: Fri Mar 25 10:11:36 2016 +0100 correction de la conversion gramme -> unité de la conf (fixes #8189) --- .../operation/catches/species/frequency/SpeciesFrequencyUIModel.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/frequency/SpeciesFrequencyUIModel.java b/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/frequency/SpeciesFrequencyUIModel.java index 5532cad..b1349c7 100644 --- a/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/frequency/SpeciesFrequencyUIModel.java +++ b/tutti-ui-swing/src/main/java/fr/ifremer/tutti/ui/swing/content/operation/catches/species/frequency/SpeciesFrequencyUIModel.java @@ -850,8 +850,9 @@ public class SpeciesFrequencyUIModel extends AbstractTuttiTableUIModel<SpeciesBa Float computedWeight = null; if (row.withNumber() && row.getLengthStep() != null && withRtp()) { + // computedWeightForLengthStep in grams float computedWeightForLengthStep = Weights.computeWithRtp(getRtp(), row.getLengthStep(), getLengthStepCaracteristicUnit()); - computedWeight = weightUnit.round(weightUnit.fromEntity(row.getNumber() * computedWeightForLengthStep)); + computedWeight = WeightUnit.G.convertWeight(row.getNumber() * computedWeightForLengthStep, weightUnit); } row.setRtpComputedWeight(computedWeight); -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.
participants (1)
-
codelutin.com scm