Fix bugs: stroke condition, logging typo, NPE in clone(), mutable bounds
This commit is contained in:
@@ -49,7 +49,8 @@ public class SCircle extends AbstractShape {
|
||||
@Override
|
||||
public Shape clone() {
|
||||
var color = (ColorAttributes) getAttributes(ColorAttributes.ID);
|
||||
return SCircle.create(super.getBounds().x, super.getBounds().y, this.radius, color.strokedColor);
|
||||
Color strokeColor = color != null ? color.strokedColor : Color.BLACK;
|
||||
return SCircle.create(super.getBounds().x, super.getBounds().y, this.radius, strokeColor);
|
||||
}
|
||||
|
||||
public int getRadius() {
|
||||
|
||||
Reference in New Issue
Block a user