Kaydet (Commit) 6dfcaa89 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Bin unneeded variable

As far as I see, the only use of aNormalizedEdgeVector is as a
parameter to areParallel(), and there is no need for that to be
normalized, is there?

Change-Id: I31ca09391894ab441e5b88dbdd636cf4b91ac5c2
üst 8404dc3c
......@@ -620,8 +620,6 @@ namespace basegfx
{
const B2DRange aRange(rCurr, rNext);
const B2DVector aEdgeVector(rNext - rCurr);
B2DVector aNormalizedEdgeVector(aEdgeVector);
aNormalizedEdgeVector.normalize();
bool bTestUsingX(fabs(aEdgeVector.getX()) > fabs(aEdgeVector.getY()));
for(sal_uInt32 a(0L); a < nPointCount; a++)
......@@ -634,7 +632,7 @@ namespace basegfx
{
const B2DVector aTestVector(aTestPoint - rCurr);
if(areParallel(aNormalizedEdgeVector, aTestVector))
if(areParallel(aEdgeVector, aTestVector))
{
const double fCut((bTestUsingX)
? aTestVector.getX() / aEdgeVector.getX()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment