summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-08-19 20:01:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-08-19 20:08:58 +0100
commitb27417623835b1c82475783979a1fb9656b5155e (patch)
tree339374817109a419afded650e7111419c14f9e28 /chart2/source
parenta4de770bab5e05af42dcd790b1e4a54fcc758e6c (diff)
crashtesting: failure on ooo82676-1.sxc import
regression from commit b3abc191e24bd2e812836257024d14557a6238ce Author: Laurent Balland-Poirier <laurent.balland-poirier@laposte.net> Date: Wed Jun 17 15:15:07 2015 +0200 Change-Id: I44cfd85e9f7be65929281169fd297252e00c7317
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/view/main/VDataSeries.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/view/main/VDataSeries.cxx b/chart2/source/view/main/VDataSeries.cxx
index 6667cbbefca3..8512c19cb4f5 100644
--- a/chart2/source/view/main/VDataSeries.cxx
+++ b/chart2/source/view/main/VDataSeries.cxx
@@ -521,7 +521,7 @@ 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() )
+ while ( i < aValuesX.getLength() && ::rtl::math::isNan(aValuesX[i]) )
i++;
if ( i < aValuesX.getLength() )
fMax = fMin = aValuesX[i++];