Permalink
Browse files

actionDefault: avoid using invalid ref point, bug#3587192

  • Loading branch information...
Dongxu Li
Dongxu Li committed Dec 30, 2012
1 parent fb6b20d commit ae011b1d0224c9051419ea623fe719d882b520d5
Showing with 4 additions and 2 deletions.
  1. +4 −2 librecad/src/actions/rs_actiondefault.cpp
@@ -145,8 +145,10 @@ void RS_ActionDefault::mouseMoveEvent(QMouseEvent* e) {
RS_DEBUG->print("RS_ActionDefault::mouseMoveEvent: "
"moving entity");
setStatus(Moving);
- v1 = en->getNearestRef(v1);
- graphicView->moveRelativeZero(v1);
+ RS_Vector vp= en->getNearestRef(v1);
+ if(vp.valid) v1=vp;
+
+ //graphicView->moveRelativeZero(v1);
}
// no entity found. start area selection:

0 comments on commit ae011b1

Please sign in to comment.