lami: set the min value when clamping to zero.
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 21 Sep 2016 18:44:34 +0000 (14:44 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Mon, 26 Sep 2016 15:48:33 +0000 (11:48 -0400)
Fixes CID 141171

Change-Id: I37827d6bcb6c7b66a65c23c77035728f27f34cad
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Reviewed-on: https://git.eclipse.org/r/81623
Reviewed-by: Hudson CI
Reviewed-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Tested-by: Alexandre Montplaisir <alexmonthy@efficios.com>
analysis/org.eclipse.tracecompass.analysis.lami.ui/src/org/eclipse/tracecompass/internal/provisional/analysis/lami/ui/viewers/LamiXYChartViewer.java

index 15f51518ced01b1929dfe0acccb97aa585828233..dbf5c313b8c48950b1d6c19c82e6c959877d4332 100644 (file)
@@ -875,7 +875,7 @@ public abstract class LamiXYChartViewer extends TmfViewer implements ILamiViewer
         }
 
         if (clampToZero) {
-            min.min(BigDecimal.ZERO);
+            min = min.min(BigDecimal.ZERO);
         }
 
         /* Do not allow a range with a zero delta default to 1 */
This page took 0.025629 seconds and 5 git commands to generate.