X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Factions%2Frs_actiondrawcircle.cpp;h=7b1d50be8c2fab0c995c85c4a280fe9ac43c18c7;hb=3f46c180da0806c9c263e6d87d0f1404632402da;hp=54baf3107ec6bf1ed316e502dd30934adbb0a174;hpb=ee048ce722e7beb53e702825bb3285cd5cacd8bb;p=architektonas diff --git a/src/actions/rs_actiondrawcircle.cpp b/src/actions/rs_actiondrawcircle.cpp index 54baf31..7b1d50b 100644 --- a/src/actions/rs_actiondrawcircle.cpp +++ b/src/actions/rs_actiondrawcircle.cpp @@ -106,12 +106,12 @@ void RS_ActionDrawCircle::mouseMoveEvent(QMouseEvent * e) void RS_ActionDrawCircle::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) { deletePreview(); deleteSnapper();