From 37a7362d9e0f30c143d9ca9914e80c2228819768 Mon Sep 17 00:00:00 2001 From: bancika Date: Tue, 11 Jan 2011 18:54:53 +0000 Subject: [PATCH] fixed d&d bug with multiple selection --- .../DIYLC/src/org/diylc/presenter/Presenter.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ diy-layout-creator --username bancika@gmail.com/DIYLC/src/org/diylc/presenter/Presenter.java b/ diy-layout-creator --username bancika@gmail.com/DIYLC/src/org/diylc/presenter/Presenter.java index 45a97157..a6f70383 100644 --- a/ diy-layout-creator --username bancika@gmail.com/DIYLC/src/org/diylc/presenter/Presenter.java +++ b/ diy-layout-creator --username bancika@gmail.com/DIYLC/src/org/diylc/presenter/Presenter.java @@ -433,10 +433,10 @@ public class Presenter implements IPlugInPort { } } } - // If CTRL is pressed, we only care about the top most component. - if (altDown && components.size() > 0) { - break; - } +// // If CTRL is pressed, we only care about the top most component. +// if (altDown && components.size() > 0) { +// break; +// } } messageDispatcher.dispatchMessage(EventType.MOUSE_MOVED, scaledPoint); @@ -510,17 +510,17 @@ public class Presenter implements IPlugInPort { } // If there aren't any control points, try to add all the selected // components with all their control points. That will allow the - // user to - // drag the whole component. + // user to drag the whole components. for (IDIYComponent c : selectedComponents) { Set pointIndices = new HashSet(); - if (component.getControlPointCount() > 0) { - for (int i = 0; i < component.getControlPointCount(); i++) { + if (c.getControlPointCount() > 0) { + for (int i = 0; i < c.getControlPointCount(); i++) { pointIndices.add(i); } controlPointMap.put(c, pointIndices); } } + LOG.debug(controlPointMap); } }