[Libreoffice-commits] libvisio.git: src/lib
David Tardon
dtardon at redhat.com
Fri Oct 20 11:44:48 UTC 2017
src/lib/VSDContentCollector.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit aef4af08f5a2a6e3301cfe3088975820185da81d
Author: David Tardon <dtardon at redhat.com>
Date: Fri Oct 20 13:06:21 2017 +0200
drop pointless casts
Change-Id: I2ac4f2922acd2f789bb1c7322c0d888ab1f31d0c
diff --git a/src/lib/VSDContentCollector.cpp b/src/lib/VSDContentCollector.cpp
index 04c58ec..c842852 100644
--- a/src/lib/VSDContentCollector.cpp
+++ b/src/lib/VSDContentCollector.cpp
@@ -1980,11 +1980,11 @@ void libvisio::VSDContentCollector::_generateBezierSegmentsFromNURBS(unsigned de
mult = degree;
if (mult < degree)
{
- double numer = (double)(knotVector[b] - knotVector[a]);
+ double numer = knotVector[b] - knotVector[a];
unsigned j = degree;
std::vector<double> alphas(degree - 1, 0.0);
for (; j >mult; j--)
- alphas[j-mult-1] = numer/double(knotVector[a+j]-knotVector[a]);
+ alphas[j-mult-1] = numer/(knotVector[a+j]-knotVector[a]);
unsigned r = degree - mult;
for (j=1; j<=r; j++)
{
More information about the Libreoffice-commits
mailing list