Skip to content

Commit 5a2f6d8

Browse files
authored
Merge pull request #4777 from modelica/DagBruck-patch-1
Unit present verbatim in text annotation, fixes issue 3630.
2 parents 79e34fd + 86c4617 commit 5a2f6d8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Modelica/Blocks/Interfaces.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ converts from one unit into another one.
13751375
{48,13},{56,13},{56,-53},{66,-53}}),
13761376
Text(
13771377
extent={{-150,-110},{150,-150}},
1378-
textString="%samplePeriod s"),
1378+
textString="%{samplePeriod}"),
13791379
Line(visible=not enableNoise,
13801380
points={{-76,48},{72,48}}),
13811381
Text(visible=not enableNoise,

Modelica/Blocks/MathBoolean.mo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ The usage is demonstrated, e.g., in example
411411
annotation (Icon(graphics={
412412
Text(
413413
extent={{-250,-120},{250,-150}},
414-
textString="%delayTime s"),
414+
textString="%{delayTime}"),
415415
Line(points={{-80,-66},{-60,-66},{-60,-22},{38,-22},{38,-66},{66,-66}}),
416416
Line(points={{-80,32},{-4,32},{-4,76},{38,76},{38,32},{66,32}},
417417
color={255,0,255})}),

0 commit comments

Comments
 (0)