Commit 9d845f69 authored by Dennis Nienhüser's avatar Dennis Nienhüser
Browse files

Avoid overflows (?) for large (?) values. Fixes date line appearance.

TODO: inspect valid ranges more closely, avoid loss of precision in
high zoom levels. Might need a tile level dependent scale value.
parent e2c59ba1
......@@ -87,7 +87,7 @@ enum PolyFillType { pftEvenOdd, pftNonZero, pftPositive, pftNegative };
struct IntPoint {
cInt X;
cInt Y;
constexpr static qint64 const scale = 10000000000;
constexpr static qint64 const scale = 10000000;
#ifdef use_xyz
cInt Z;
IntPoint(cInt x = 0, cInt y = 0, cInt z = 0): X(x), Y(y), Z(z) {};
Supports Markdown
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