Fix bugs: stroke condition, logging typo, NPE in clone(), mutable bounds

This commit is contained in:
2026-03-19 22:15:16 +01:00
parent b34ad6a2e4
commit fcd68be51b
6 changed files with 13 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ public class SCollection extends AbstractShape implements Streamable<Shape> {
for (Shape s : children) bounds = bounds.union(s.getBounds());
return bounds;
} catch (IndexOutOfBoundsException e){
logger.error("getBounds(): {e}", e);
logger.error("getBounds(): {}", e);
throw new RuntimeException(e);
}
}