diff --git a/distribution/ReleaseNotes.txt b/distribution/ReleaseNotes.txt index 8afd13d21..d56b326d1 100644 --- a/distribution/ReleaseNotes.txt +++ b/distribution/ReleaseNotes.txt @@ -5,11 +5,11 @@ planned as v0.13 - If an error occurs, the name of the affected circuit file is shown. - An input can have "high z" value as its default value. CAUTION: All default values are lost! If you have built a circuit that contains - test cases that depend on a non-null default value, this tests will fail. To - resolve this issue, reset the default value. + test cases that depend on a non-null default value, this tests will fail. To + resolve this issue, reset the default value. - added an enable input to the T flip-flop CAUTION: By default this input is activated now. In circuits which used the T flip-flop - in the past, the new input needs to be disabled. + in the past, the new input needs to be disabled. - A warning message shows up if a circuit with unnamed inputs/outputs is analysed. - A warning message shows up if a circuit with missing pin numbers is exported to a hardware-related file. @@ -17,6 +17,9 @@ planned as v0.13 - Comments are allowed in hex files. - Added zooming to measurement graphs. - Test results can be displayed as measurement graphs. +- The Text component is able to show multiple lines. + CAUTION: If you modify the text in an text component created in the past, you have to + reenter the text. v0.12.1, released on 05. Jun 2016 - added a fuse to simulate a PROM or PAL. diff --git a/src/main/java/de/neemann/digital/draw/shapes/TextShape.java b/src/main/java/de/neemann/digital/draw/shapes/TextShape.java index 1754ee4ee..f2b42e29e 100644 --- a/src/main/java/de/neemann/digital/draw/shapes/TextShape.java +++ b/src/main/java/de/neemann/digital/draw/shapes/TextShape.java @@ -31,6 +31,10 @@ public class TextShape implements Shape { */ public TextShape(ElementAttributes attr, PinDescriptions inputs, PinDescriptions outputs) { String text = attr.get(Keys.DESCRIPTION); + + if (text.length() == 0) // ToDo: used to show the text from old files. + text = attr.getLabel(); + if (text.length() == 0) text = Lang.get("elem_Text"); this.text = text;