#i111715# corrected numerical cases for polygon clipper and geometry creator

This commit is contained in:
Armin Le Grand
2010-05-27 12:34:12 +02:00
parent 8a7501fdc4
commit f02b283bb7

View File

@@ -364,7 +364,8 @@ namespace basegfx
if(fTools::moreOrEqual(fCutB, fZero) && fTools::less(fCutB, fOne))
{
// cut is in both ranges. Add points for A and B
if(fTools::equalZero(fCutA))
// #i111715# use fTools::equal instead of fTools::equalZero for better accuracy
if(fTools::equal(fCutA, fZero))
{
// ignore for start point in first edge; this is handled
// by outer methods and would just produce a double point
@@ -379,7 +380,8 @@ namespace basegfx
rTempPointsA.push_back(temporaryPoint(aCutPoint, a, fCutA));
}
if(fTools::equalZero(fCutB))
// #i111715# use fTools::equal instead of fTools::equalZero for better accuracy
if(fTools::equal(fCutB, fZero))
{
// ignore for start point in first edge; this is handled
// by outer methods and would just produce a double point