Applying a variant to a 'Hookup Wire' or 'Curved Trace' makes it lose its shape

This commit is contained in:
Branislav Stojkovic
2025-03-28 16:26:51 +01:00
parent 34054a68f1
commit e17b79a2c4
2 changed files with 7 additions and 0 deletions
@@ -201,6 +201,9 @@ public abstract class AbstractCurvedComponent<T> extends AbstractTransparentComp
}
public void setPointCount(PointCount pointCount) {
if (this.pointCount == pointCount)
return;
Point2D[] p = getControlPoints();
Point2D[] newPoints = new Point2D[pointCount.count];
newPoints[0] = p[0];
@@ -345,6 +345,10 @@
<changeType>IMPROVEMENT</changeType>
<description>Fully configurable colors for 'Mini Toggle Switch' components</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType>
<description>Applying a variant to a 'Hookup Wire' or 'Curved Trace' makes it lose its shape</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>BUG_FIX</changeType>
<description>Copy operation doesn't work when certain component types are selected</description>