[#1761] Correctly fix #1375 this time...

This commit is contained in:
SiboVG 2022-10-21 14:23:01 +02:00
parent 281169627e
commit 164513fd6d

View File

@ -257,7 +257,8 @@ public class Transition extends SymmetricComponent implements InsideColorCompone
if (type == null) {
throw new IllegalArgumentException("setType called with null argument");
}
if ((this.type == type) && (this.clipped == type.isClippable()) && (this.shapeParameter == type.defaultParameter()))
if (this.type == type)
return;
this.type = type;
this.clipped = type.isClippable();
@ -687,6 +688,8 @@ public class Transition extends SymmetricComponent implements InsideColorCompone
if ( preset.has(ComponentPreset.SHAPE) ) {
Shape s = preset.get(ComponentPreset.SHAPE);
this.setType(s);
this.setClipped(s.canClip);
this.setShapeParameter(s.defaultParameter());
}
if ( preset.has(ComponentPreset.AFT_OUTER_DIAMETER) ) {
double outerDiameter = preset.get(ComponentPreset.AFT_OUTER_DIAMETER);