summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-27 10:23:03 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-28 06:27:16 +0100
commitca4e453d760f3001ef34ba0beda4b2e5f7e24be1 (patch)
treedfdcdc4027bdd7d9d533c96dcdb7b55589cc4f14 /chart2
parent4038f2467cc97ab964880dd39e1227fcf4f42a7b (diff)
make sure that this coverity report is really a false positive
Change-Id: I2ae6312c533bf2dbfcd5fa691c5acaaee61fe8b2
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/charttypes/Splines.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/chart2/source/view/charttypes/Splines.cxx b/chart2/source/view/charttypes/Splines.cxx
index 8cb7fcb2d7aa..a288f12ec453 100644
--- a/chart2/source/view/charttypes/Splines.cxx
+++ b/chart2/source/view/charttypes/Splines.cxx
@@ -497,6 +497,7 @@ void createKnotVector(const lcl_tSizeType n, const sal_uInt32 p, double* t, doub
{
fSum += t[i];
}
+ assert(p != 0);
u[j+p] = fSum / p ;
}
for (lcl_tSizeType j = n+1; j <= n+1+p; ++j)