Skip to content
Snippets Groups Projects
Commit 1dc002fc authored by Ludovic Apvrille's avatar Ludovic Apvrille
Browse files

Merge branch 'bug_fixes' into 'master'

Fix right click when several components are selected

See merge request !12
parents 87585a8f 6e5c3cfc
No related branches found
No related tags found
1 merge request!12Fix right click when several components are selected
......@@ -100,7 +100,9 @@ public class TDiagramMouseManager extends MouseAdapter {//implements MouseListen
//System.out.println("Titi");
if (e.getButton() == MouseEvent.BUTTON3) {
//System.out.println("toto");
setSelection(e.getX(), e.getY());
if (tdp.mode != TDiagramPanel.SELECTED_COMPONENTS) {
setSelection(e.getX(), e.getY());
}
tdp.openPopupMenu(e.getX(), e.getY());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment