summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-07-24 18:23:35 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-07-24 18:23:35 +0200
commitfad158c87e99eeac9bcecca2d699e800878d5c82 (patch)
tree0c15156be64779c1625e6bbdc10b50378bbb7dc0 /chart2
parentae5ff039f697016a9c04b8f99c24f4e620ce4c65 (diff)
Revert "tdf#76649 Skip NaN initial values for min and max"
This patch should not go in without a test!! This reverts commit ae5ff039f697016a9c04b8f99c24f4e620ce4c65.
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/main/VDataSeries.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/chart2/source/view/main/VDataSeries.cxx b/chart2/source/view/main/VDataSeries.cxx
index 6667cbbefca3..3efa477734ca 100644
--- a/chart2/source/view/main/VDataSeries.cxx
+++ b/chart2/source/view/main/VDataSeries.cxx
@@ -520,13 +520,9 @@ void VDataSeries::getMinMaxXValue(double& fMin, double& fMax) const
if(aValuesX.getLength() > 0)
{
- sal_Int32 i = 0;
- while ( ::rtl::math::isNan( aValuesX[i] ) && i < aValuesX.getLength() )
- i++;
- if ( i < aValuesX.getLength() )
- fMax = fMin = aValuesX[i++];
+ fMax = fMin = aValuesX[0];
- for ( ; i < aValuesX.getLength(); i++)
+ for (sal_Int32 i = 1; i < aValuesX.getLength(); i++)
{
const double aValue = aValuesX[i];
if ( aValue > fMax)