]> Shamusworld >> Repos - architektonas/blobdiff - src/geometry.cpp
Further progress on Polylines: Polylines can be selected and moved.
[architektonas] / src / geometry.cpp
index 6b3935db57895998a63026dcb592c7b604229260..f4918560990d8ddcd61709daf54aae49c6b4fadc 100644 (file)
@@ -593,7 +593,7 @@ Arc Geometry::Unpack(Point tail, Point head, double bump)
 {
        double length = Vector::Magnitude(tail, head) / 2.0;
        double bumpLen = length * fabs(bump);
-       Point midpoint = Vector::Midpoint(tail, head);
+       Point midpoint = (tail + head) / 2.0;
        Vector mpNormal = Vector::Normal(tail, head); // Normal points to the left
 
        // Flip the normal if the bump is pointing left