fix: SText.updateMeasuredBounds() must mutate internal bounds, not defensive copy
All checks were successful
CI / build-and-test (pull_request) Successful in 17s

Closes #27
This commit is contained in:
2026-03-27 23:56:42 +01:00
committed by Thibaud Gasser
parent 1db8ade18e
commit 873f5d2711
2 changed files with 37 additions and 1 deletions

View File

@@ -57,7 +57,7 @@ public class SText extends AbstractShape {
}
public void updateMeasuredBounds(int width, int height) {
getBounds().setSize(Math.max(width, 0), Math.max(height, 0));
bounds.setSize(Math.max(width, 0), Math.max(height, 0));
}
@Override