mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-11 01:32:08 +10:00
Right click rotation during component creation throws an error
This commit is contained in:
Binary file not shown.
+4
-2
@@ -376,7 +376,8 @@ public class InstantiationManager {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
angleProperty.readFrom(this.componentSlot);
|
for (IDIYComponent<?> component : this.componentSlot) {
|
||||||
|
angleProperty.readFrom(component);
|
||||||
Object value = angleProperty.getValue();
|
Object value = angleProperty.getValue();
|
||||||
if (value instanceof Orientation) {
|
if (value instanceof Orientation) {
|
||||||
angleProperty
|
angleProperty
|
||||||
@@ -389,7 +390,8 @@ public class InstantiationManager {
|
|||||||
.ordinal() + 1)
|
.ordinal() + 1)
|
||||||
% OrientationHV.values().length]);
|
% OrientationHV.values().length]);
|
||||||
}
|
}
|
||||||
angleProperty.writeTo(this.componentSlot);
|
angleProperty.writeTo(component);
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
LOG.warn("Error trying to rotate the component", e);
|
LOG.warn("Error trying to rotate the component", e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user