diff --git a/api/pom.xml b/api/pom.xml index 60b14648..ebf98443 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -7,7 +7,7 @@ de.tesis.dynaware de.tesis.dynaware.grapheditor - 1.3.1 + 1.3.2 ${component.name}::API diff --git a/core/pom.xml b/core/pom.xml index 6b2302e4..79ec4797 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -7,7 +7,7 @@ de.tesis.dynaware de.tesis.dynaware.grapheditor - 1.3.1 + 1.3.2 ${component.name}::Core diff --git a/core/src/main/java/de/tesis/dynaware/grapheditor/core/selections/SelectionDragManager.java b/core/src/main/java/de/tesis/dynaware/grapheditor/core/selections/SelectionDragManager.java index 3af17d3b..1418fcd5 100644 --- a/core/src/main/java/de/tesis/dynaware/grapheditor/core/selections/SelectionDragManager.java +++ b/core/src/main/java/de/tesis/dynaware/grapheditor/core/selections/SelectionDragManager.java @@ -5,6 +5,7 @@ import java.util.HashMap; import java.util.Map; +import java.util.Optional; import javafx.beans.value.ChangeListener; import javafx.scene.layout.Region; @@ -274,7 +275,10 @@ private void addPositionListeners(final Region master, final GModel model) { if (nodeSkin.isSelected() && !nodeSkin.getRoot().equals(master)) { final Region slave1 = nodeSkin.getRoot(); - slave1.setLayoutX((Double) n + nodeLayoutXOffsets.get(node)); + Double offset = nodeLayoutXOffsets.get(node); + if(offset != null) { + slave1.setLayoutX((Double) n + offset); + } } } @@ -287,7 +291,10 @@ private void addPositionListeners(final Region master, final GModel model) { if (jointSkin.isSelected() && !jointSkin.getRoot().equals(master)) { final Region slave2 = jointSkin.getRoot(); - slave2.setLayoutX((Double) n + jointLayoutXOffsets.get(joint)); + Double offset = jointLayoutXOffsets.get(joint); + if(offset != null) { + slave2.setLayoutX((Double) n + offset); + } } } } @@ -302,7 +309,10 @@ private void addPositionListeners(final Region master, final GModel model) { if (nodeSkin.isSelected() && !nodeSkin.getRoot().equals(master)) { final Region slave1 = nodeSkin.getRoot(); - slave1.setLayoutY((Double) n + nodeLayoutYOffsets.get(node)); + Double offset = nodeLayoutYOffsets.get(node); + if(offset != null) { + slave1.setLayoutY((Double) n + offset); + } } } @@ -315,7 +325,10 @@ private void addPositionListeners(final Region master, final GModel model) { if (jointSkin.isSelected() && !jointSkin.getRoot().equals(master)) { final Region slave2 = jointSkin.getRoot(); - slave2.setLayoutY((Double) n + jointLayoutYOffsets.get(joint)); + Double offset = jointLayoutYOffsets.get(joint); + if(offset != null) { + slave2.setLayoutY((Double) n + offset); + } } } } diff --git a/demo/pom.xml b/demo/pom.xml index f85d8889..6b279820 100644 --- a/demo/pom.xml +++ b/demo/pom.xml @@ -7,7 +7,7 @@ de.tesis.dynaware de.tesis.dynaware.grapheditor - 1.3.1 + 1.3.2 ${component.name}::Demo diff --git a/model/pom.xml b/model/pom.xml index f559b873..44978fb6 100644 --- a/model/pom.xml +++ b/model/pom.xml @@ -7,7 +7,7 @@ de.tesis.dynaware de.tesis.dynaware.grapheditor - 1.3.1 + 1.3.2 ${component.name}::Model diff --git a/pom.xml b/pom.xml index c0bd446f..204c53f1 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ ${component.name} de.tesis.dynaware de.tesis.dynaware.grapheditor - 1.3.1 + 1.3.2 pom A library for creating and editing graph-like diagrams in JavaFX @@ -41,7 +41,7 @@ Graph Editor - 1.3.1-${maven.build.timestamp} + 1.3.2-${maven.build.timestamp} yyyymmddhhmm UTF-8 1.8