Xcos: fix blocks rotation action 35/19035/1
Clément DAVID [Fri, 27 Jan 2017 13:28:00 +0000 (14:28 +0100)]
Change-Id: I17e6f5a291767e9e55c0df423165f95ce9513d21

scilab/modules/xcos/src/java/org/scilab/modules/xcos/block/actions/RotateAction.java

index c724214..8f2bdd2 100644 (file)
@@ -2,7 +2,7 @@
  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
  * Copyright (C) 2009 - DIGITEO - Vincent COUVERT
  * Copyright (C) 2010 - DIGITEO - Clement DAVID
- * Copyright (C) 2011-2015 - Scilab Enterprises - Clement DAVID
+ * Copyright (C) 2011-2017 - Scilab Enterprises - Clement DAVID
  *
  * Copyright (C) 2012 - 2016 - Scilab Enterprises
  *
@@ -80,7 +80,7 @@ public class RotateAction extends VertexSelectionDependantAction {
 
                 for (int i = 0; i < allCells.length; ++i) {
                     if (allCells[i] instanceof BasicBlock) {
-                        BlockPositioning.rotateAllPorts((XcosDiagram) getGraph(null), (BasicBlock) allCells[i]);
+                        BlockPositioning.toggleAntiClockwiseRotation((XcosDiagram) getGraph(null), (BasicBlock) allCells[i]);
                     }
                 }
             } finally {