summaryrefslogtreecommitdiff
path: root/chart2/source/view/charttypes/Splines.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/view/charttypes/Splines.cxx')
-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 5d5a02228690..774d5fc1d7ac 100644
--- a/chart2/source/view/charttypes/Splines.cxx
+++ b/chart2/source/view/charttypes/Splines.cxx
@@ -744,7 +744,7 @@ void SplineCalculater::CalculateBSplines(
// find the one interval with u_i <= t_k < u_(i+1)
// remember u_0 = ... = u_p = 0.0 and u_(m-p) = ... u_m = 1.0 and 0<t_k<1
lcl_tSizeType i = p;
- while (!(u[i] <= t[k] && t[k] < u[i+1]))
+ while (u[i] > t[k] || t[k] >= u[i+1])
{
++i;
}
@@ -872,7 +872,7 @@ void SplineCalculater::CalculateBSplines(
for ( lcl_tSizeType nTIndex = 0; nTIndex <= n-1; ++nTIndex)
{
for (sal_uInt32 nResolutionStep = 1;
- nResolutionStep <= nResolution && !( nTIndex == n-1 && nResolutionStep == nResolution);
+ nResolutionStep <= nResolution && ( nTIndex != n-1 || nResolutionStep != nResolution);
++nResolutionStep)
{
lcl_tSizeType nNewIndex = nTIndex * nResolution + nResolutionStep;