mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
optimize selection rect
This commit is contained in:
+2
-1
@@ -732,8 +732,9 @@ public class Presenter implements IPlugInPort {
|
||||
} else if (selectedComponents.isEmpty()) {
|
||||
// If there's no selection, the only thing to do is update the
|
||||
// selection rectangle and refresh.
|
||||
Rectangle oldSelectionRect = selectionRect == null ? null : new Rectangle(selectionRect);
|
||||
this.selectionRect = Utils.createRectangle(scaledPoint, previousDragPoint);
|
||||
repaint = true;
|
||||
repaint = !selectionRect.equals(oldSelectionRect);
|
||||
// messageDispatcher.dispatchMessage(EventType.SELECTION_RECT_CHANGED,
|
||||
// selectionRect);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user