Commit 65ba4d60560ec0a2c08bf9876ef67c32661e0fb8

dtremenak 2008-05-08T23:12:47

and more fun with float/double consistency

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/FTVectoriser.cpp b/src/FTVectoriser.cpp
index db1d991..787ff77 100644
--- a/src/FTVectoriser.cpp
+++ b/src/FTVectoriser.cpp
@@ -219,8 +219,8 @@ void FTVectoriser::ProcessContours()
                     continue;
                 }
 
-                float K = (p2.Y() - leftmost.Y()) / (p1.Y() - leftmost.Y());
-                float K2 = (p2.X() - p1.X()) / (K - 1.);
+                double K = (p2.Y() - leftmost.Y()) / (p1.Y() - leftmost.Y());
+                double K2 = (p2.X() - p1.X()) / (K - 1.);
 
                 if(leftmost.X() > p1.X() - K2)
                 {