X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcircle.cpp;h=9111c04ec1e8c36289703979a9848d0797664707;hb=e8987f4028a1f9c0eeb33a45bd11b2e409b9c2c5;hp=909d30416bac3676beaf8d6d8cbe905184f04eb7;hpb=eb711912d64f17cf9c18c74c4d78d9867bd066ad;p=architektonas diff --git a/src/circle.cpp b/src/circle.cpp index 909d304..9111c04 100644 --- a/src/circle.cpp +++ b/src/circle.cpp @@ -87,6 +87,11 @@ Circle::~Circle() objectWasDragged = false; HitTest(point); + // Now that we've done our hit testing on the non-snapped point, snap it if + // necessary... + if (snapToGrid) + point = SnapPointToGrid(point); + draggingCenter = hitCenter; draggingEdge = hitCircle;