fixed a bug in the dil shape

This commit is contained in:
hneemann 2019-11-06 21:59:02 +01:00
parent 1752ae8dde
commit f076b6a83f

View File

@ -104,7 +104,7 @@ public class DILShape implements Shape {
.add(x - pin, -SIZE)
.add(x - pin, h)
.add(pin, h), Style.NORMAL);
graphic.drawText(new Vector(x / 2, SIZE2), shortName, Orientation.LEFTCENTER, Style.NORMAL_TEXT);
graphic.drawText(new Vector(x / 2, SIZE2), new Vector(x / 2, SIZE * 2), shortName, Orientation.LEFTCENTER, Style.NORMAL_TEXT);
if (label != null && label.length() > 0)
graphic.drawText(new Vector(x / 2, h + SIZE2), label, Orientation.CENTERTOP, Style.NORMAL_TEXT);