]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/actiondrawpolyline.cpp
Removed Snapper class; still refactoring Snapper/Preview...
[architektonas] / src / actions / actiondrawpolyline.cpp
index 65a7270cfe55611c655f1cfc745c83f04e29e78a..1ddd4121ca303066c07a40909e4eadd332d3a0b9 100644 (file)
@@ -74,7 +74,7 @@ void ActionDrawPolyline::mouseMoveEvent(QMouseEvent * e)
                DEBUG->print("ActionDrawPolyline::mouseMoveEvent(): line added: %d", ent->getId());
        }
 #else
-       Vector mouse = graphicView->snapper.snapPoint(e);
+       Vector mouse = graphicView->SnapPoint(e);
 
        if (getStatus() == SetNextPoint && startPoint.valid)
        {
@@ -142,7 +142,7 @@ void ActionDrawPolyline::mouseReleaseEvent(QMouseEvent * e)
 {
        if (e->button() == Qt::LeftButton)
        {
-               Vector ce(graphicView->snapper.snapPoint(e));
+               Vector ce(graphicView->SnapPoint(e));
                coordinateEvent(&ce);
 
 //let's try this...