diff --git a/diylc/diylc-core/src/main/java/org/diylc/components/AbstractComponent.java b/diylc/diylc-core/src/main/java/org/diylc/components/AbstractComponent.java index 675e1c11..3c7e7449 100644 --- a/diylc/diylc-core/src/main/java/org/diylc/components/AbstractComponent.java +++ b/diylc/diylc-core/src/main/java/org/diylc/components/AbstractComponent.java @@ -189,7 +189,7 @@ public abstract class AbstractComponent implements IDIYComponent { // Deep copy point arrays. // TODO: something nicer if (value != null && value.getClass().isArray() - && value.getClass().getComponentType().isAssignableFrom(Point2D.class)) { + && Point2D.class.isAssignableFrom(value.getClass().getComponentType())) { Object newArray = Array.newInstance(value.getClass().getComponentType(), Array.getLength(value)); for (int i = 0; i < Array.getLength(value); i++) { Point2D p = (Point2D) Array.get(value, i); diff --git a/diylc/diylc-core/src/main/resources/update.xml b/diylc/diylc-core/src/main/resources/update.xml index 5ac94e12..e71a5115 100644 --- a/diylc/diylc-core/src/main/resources/update.xml +++ b/diylc/diylc-core/src/main/resources/update.xml @@ -317,6 +317,10 @@ BUG_FIX 'Pilot Lamp Holder' component can sometimes hang the application + + BUG_FIX + Fixed the issue with some components (e.g. DIP IC) jumping when showing underside of a board + https://github.com/bancika/diy-layout-creator/releases