]> Shamusworld >> Repos - architektonas/blobdiff - src/actions/actionblocksinsert.cpp
Bugfixes related to removing Snapper class.
[architektonas] / src / actions / actionblocksinsert.cpp
index 48d6ff985c15c08c39a229b4fb5c5473ccf062c6..da6eea93bbd40d4c2c59c8d58c321cf53546595e 100644 (file)
@@ -89,7 +89,7 @@ void ActionBlocksInsert::mouseMoveEvent(QMouseEvent * e)
        {
        case SetTargetPoint:
 //             data.insertionPoint = snapPoint(e);
-               data.insertionPoint = graphicView->snapper.snapPoint(e);
+               data.insertionPoint = graphicView->SnapPoint(e);
 
                if (block != NULL)
                {
@@ -116,7 +116,7 @@ void ActionBlocksInsert::mouseReleaseEvent(QMouseEvent * e)
        if (e->button() == Qt::LeftButton)
        {
 //             Vector ce(snapPoint(e));
-               Vector ce(graphicView->snapper.snapPoint(e));
+               Vector ce(graphicView->SnapPoint(e));
                coordinateEvent(&ce);
        }
        else if (e->button() == Qt::RightButton)