Skip to content
Snippets Groups Projects
Commit 22ec1d35 authored by Dominique Blouin's avatar Dominique Blouin
Browse files

cancel actions

parent 0e43ccea
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,9 @@ public class AlwaystryActivity extends Activity implements OnGesturePerformedLis
case R.id.iod_edit:
panel.setCreatedtype(TGComponentAndroid.NOCOMPONENT);
panel.setMode(AvatarBDPanelAndroid.NORMAL);
panel.cleanSelection();
clickaction =1;
panel.setComponentSelected(null);
break;
case R.id.uml_note:
panel.setCreatedtype(TGComponentAndroid.UML_NOTE);
......
......@@ -523,6 +523,10 @@ public class AvatarBDPanelAndroid extends View {
public void setCreatedtype(int createdtype) {
this.createdtype = createdtype;
if(createdtype == TGComponentAndroid.NOCOMPONENT){
if(p1 != null){
p1.setState(TGConnectingPointAndroid.NORMAL);
p1.setFree(true);
}
this.hideAllConnectingPoints();
p1 = null;
}
......@@ -539,5 +543,11 @@ public class AvatarBDPanelAndroid extends View {
return compolist;
}
public void cleanSelection(){
xsel=-1;
ysel=-1;
xendsel =-1;
yendsel=-1;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment