[chronojump/FS-TFT-Menu] Fixed CairoBarsEncoder bars order, line, arrow since last commit
- From: Xavier Padullés <xpadulles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump/FS-TFT-Menu] Fixed CairoBarsEncoder bars order, line, arrow since last commit
- Date: Wed, 20 Apr 2022 11:59:21 +0000 (UTC)
commit 6dccc7e439d1e8bb897fd960e218a2a0dcb1f5bb
Author: Xavier de Blas <xaviblas gmail com>
Date: Thu Mar 31 11:15:01 2022 +0200
Fixed CairoBarsEncoder bars order, line, arrow since last commit
src/gui/cairo/bars.cs | 8 ++++----
src/gui/eventExecute.cs | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/gui/cairo/bars.cs b/src/gui/cairo/bars.cs
index 442d70562..405b413c8 100644
--- a/src/gui/cairo/bars.cs
+++ b/src/gui/cairo/bars.cs
@@ -569,7 +569,7 @@ public abstract class CairoBars : CairoGeneric
bool firstDone = false;
for (int i = 0 ; i < barsXCenter_l.Count; i ++)
{
- double y = calculatePaintY (lineData_l[lineData_l.Count -1 -i],
+ double y = calculatePaintY (lineData_l[i],
MathUtil.GetMax (lineData_l),
0);//MathUtil.GetMin (lineData_l));
@@ -586,7 +586,7 @@ public abstract class CairoBars : CairoGeneric
int pointsRadius = 4;
for (int i = 0 ; i < barsXCenter_l.Count; i ++)
{
- double y = calculatePaintY (lineData_l[lineData_l.Count -1 -i],
+ double y = calculatePaintY (lineData_l[i],
MathUtil.GetMax (lineData_l),
0);//MathUtil.GetMin (lineData_l));
@@ -1719,11 +1719,11 @@ public class CairoBarsArrow
public double GetX0Graph (List<double> barsXCenter_l)
{
- return barsXCenter_l[barsXCenter_l.Count -1 -x0pos];
+ return barsXCenter_l[x0pos];
}
public double GetX1Graph (List<double> barsXCenter_l)
{
- return barsXCenter_l[barsXCenter_l.Count -1 -x1pos];
+ return barsXCenter_l[x1pos];
}
}
diff --git a/src/gui/eventExecute.cs b/src/gui/eventExecute.cs
index 9caee72a5..1d2c33a1e 100644
--- a/src/gui/eventExecute.cs
+++ b/src/gui/eventExecute.cs
@@ -3694,7 +3694,7 @@ public class CairoPaintBarplotPreEncoder : CairoPaintBarsPre
}
//we used data because this array has only the reps not discarded by showNRepetitions
- for (count = (data.Count -1); count >= 0; count --)
+ for (count = 0; count < data.Count ; count ++)
{
double mainVariableValue = Convert.ToDouble(data[count]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]