1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 10:59:01 +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); SvekUtils.println(sb);
return; return;
} }
if (type == ShapeType.RECTANGLE && shield().isZero() == false) { if (type == ShapeType.RECTANGLE && isShielded()) {
appendHtml(sb); appendHtml(sb);
SvekUtils.println(sb); SvekUtils.println(sb);
return; return;
@ -326,7 +326,7 @@ public class SvekNode implements Positionable, Hideable {
} }
private void appendShapeInternal(StringBuilder sb) { private void appendShapeInternal(StringBuilder sb) {
if (type == ShapeType.RECTANGLE && shield().isZero() == false) if (type == ShapeType.RECTANGLE && isShielded())
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
else if (type == ShapeType.RECTANGLE || type == ShapeType.RECTANGLE_WITH_CIRCLE_INSIDE else if (type == ShapeType.RECTANGLE || type == ShapeType.RECTANGLE_WITH_CIRCLE_INSIDE
|| type == ShapeType.FOLDER) || type == ShapeType.FOLDER)