1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-06-01 08:00:48 +00:00

Avoid too early shield size calculation in some additional cases (#1467)

This commit is contained in:
Dietrich Travkin 2023-07-24 16:43:57 +02:00
parent 151fa30a5d
commit 659b723dd3

View File

@ -146,7 +146,7 @@ public class SvekNode implements Positionable, Hideable {
SvekUtils.println(sb);
return;
}
if (type == ShapeType.RECTANGLE && shield().isZero() == false) {
if (type == ShapeType.RECTANGLE && isShielded()) {
appendHtml(sb);
SvekUtils.println(sb);
return;
@ -326,7 +326,7 @@ public class SvekNode implements Positionable, Hideable {
}
private void appendShapeInternal(StringBuilder sb) {
if (type == ShapeType.RECTANGLE && shield().isZero() == false)
if (type == ShapeType.RECTANGLE && isShielded())
throw new UnsupportedOperationException();
else if (type == ShapeType.RECTANGLE || type == ShapeType.RECTANGLE_WITH_CIRCLE_INSIDE
|| type == ShapeType.FOLDER)