From 659b723dd3339e36dd797e4d4d61d0dcbc58b9e5 Mon Sep 17 00:00:00 2001 From: Dietrich Travkin Date: Mon, 24 Jul 2023 16:43:57 +0200 Subject: [PATCH] Avoid too early shield size calculation in some additional cases (#1467) --- src/net/sourceforge/plantuml/svek/SvekNode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/sourceforge/plantuml/svek/SvekNode.java b/src/net/sourceforge/plantuml/svek/SvekNode.java index 606601bd7..097813da9 100644 --- a/src/net/sourceforge/plantuml/svek/SvekNode.java +++ b/src/net/sourceforge/plantuml/svek/SvekNode.java @@ -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)