summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-04-16 09:14:39 +0200
committerJulien Nabet <serval2412@yahoo.fr>2017-04-16 10:37:00 +0200
commit22c775b05b37a89e8d64e36d1ec2fb5dfbfa5259 (patch)
treec98301c3fc75cb9fbfcfce52e4dd5199dc30050e /chart2
parente81a35e1a86b6492a68f52ae53c41ee624981ee8 (diff)
cppcheck: arrayIndexThenCheck
Change-Id: Ie3ca646fae94ff5a06a29fc2823a1cacafc3deb1 Reviewed-on: https://gerrit.libreoffice.org/36575 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/charttypes/Splines.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/view/charttypes/Splines.cxx b/chart2/source/view/charttypes/Splines.cxx
index ca8051155164..b3cd9a77c67f 100644
--- a/chart2/source/view/charttypes/Splines.cxx
+++ b/chart2/source/view/charttypes/Splines.cxx
@@ -379,8 +379,8 @@ double lcl_SplineCalculation::GetInterpolatedValue( double x )
}
else
{
- while( ( m_aPoints[ m_nKHigh ].first < x ) &&
- ( m_nKHigh <= n ) )
+ while( ( m_nKHigh <= n ) &&
+ ( m_aPoints[ m_nKHigh ].first < x ) )
{
++m_nKHigh;
++m_nKLow;