mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-28 15:32:40 -04:00
allow multi line text
This commit is contained in:
parent
9bc391d09b
commit
954e96a9bc
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user