X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actiondrawpoint.cpp;h=0a3d48ddd7685338a26b3815a0c086f81dd8edfc;hb=3f46c180da0806c9c263e6d87d0f1404632402da;hp=8ec3a810a5f2f29e8a8fe295564a7671e739581e;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actiondrawpoint.cpp b/src/actions/rs_actiondrawpoint.cpp index 8ec3a81..0a3d48d 100644 --- a/src/actions/rs_actiondrawpoint.cpp +++ b/src/actions/rs_actiondrawpoint.cpp @@ -56,12 +56,12 @@ void RS_ActionDrawPoint::mouseMoveEvent(QMouseEvent * e) void RS_ActionDrawPoint::mouseReleaseEvent(QMouseEvent * e) { - if (RS2::qtToRsButtonState(e->button()) == RS2::LeftButton) + if (e->button() == Qt::LeftButton) { Vector ce(snapPoint(e)); coordinateEvent(&ce); } - else if (RS2::qtToRsButtonState(e->button()) == RS2::RightButton) + else if (e->button() == Qt::RightButton) { deleteSnapper(); init(getStatus() - 1);