diff options
author | Adrián Medraño Calvo <adrian@medranocalvo.com> | 2017-07-20 11:01:34 (GMT) |
---|---|---|
committer | Adrián Medraño Calvo <adrian@medranocalvo.com> | 2017-07-21 11:40:47 (GMT) |
commit | 16f221ecdfbbe49a46a5525a330139f28e0976e3 (patch) | |
tree | 4f25ccf2c4c9d46430816dc9fbcff8e6ae0efb56 /generic | |
parent | ce7e3c4d7e0368d592f64d3792eeb63837732351 (diff) | |
download | blt-16f221ecdfbbe49a46a5525a330139f28e0976e3.zip blt-16f221ecdfbbe49a46a5525a330139f28e0976e3.tar.gz blt-16f221ecdfbbe49a46a5525a330139f28e0976e3.tar.bz2 |
Upgrade BarGroup's sum to double
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tkbltGrElemBar.C | 2 | ||||
-rw-r--r-- | generic/tkbltGraphBar.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkbltGrElemBar.C b/generic/tkbltGrElemBar.C index e6264fb..a1b1f12 100644 --- a/generic/tkbltGrElemBar.C +++ b/generic/tkbltGrElemBar.C @@ -873,7 +873,7 @@ void BarElement::checkStacks(Axis* xAxis, Axis* yAxis, // Check if any of the y-values (because of stacking) are greater // than the current limits of the graph. - if (gp->sum < 0.0f) { + if (gp->sum < 0.0) { if (*minPtr > gp->sum) *minPtr = gp->sum; } diff --git a/generic/tkbltGraphBar.h b/generic/tkbltGraphBar.h index 252c8d9..53c5cfb 100644 --- a/generic/tkbltGraphBar.h +++ b/generic/tkbltGraphBar.h @@ -47,7 +47,7 @@ namespace Blt { int nSegments; Axis* xAxis; Axis* yAxis; - float sum; + double sum; int count; float lastY; size_t index; |