#3158 closed defect (fixed)
OMEdit parameter window shows wrong values for base classes
| Reported by: | Rüdiger Franke | Owned by: | Adeel Asghar |
|---|---|---|---|
| Priority: | high | Milestone: | 1.9.4 |
| Component: | OMEdit | Version: | trunk |
| Keywords: | Cc: |
Description
The example below parameterizes a model with a data record. OMEdit shows wrong values in the parameter window.
Open ParameterRecordDialog.Test in OMEdit (r24573) and double click on the record r3. The parameters window will show the wrong a=1. The model translates and simulates with the correct value a=3.
package ParameterRecordDialog
record R1
extends Modelica.Icons.Record;
parameter Real a = 1;
end R1;
record R2
extends R1;
parameter Real b = 2;
end R2;
record R3
extends R2(a = 3, b = 4);
end R3;
model Test
ParameterRecordDialog.R3 r3
annotation(Placement(visible = true, transformation(origin = {-68, 72}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
annotation(Icon(coordinateSystem(extent = {{-100, -100}, {100, 100}}, preserveAspectRatio = true, initialScale = 0.1, grid = {2, 2})), Diagram(coordinateSystem(extent = {{-100, -100}, {100, 100}}, preserveAspectRatio = true, initialScale = 0.1, grid = {2, 2})));
end Test;
end ParameterRecordDialog;
Change History (7)
comment:1 by , 11 years ago
| Status: | new → accepted |
|---|
comment:2 by , 11 years ago
| Milestone: | 1.9.2 → 1.9.3 |
|---|
comment:4 by , 10 years ago
This issue has now been fixed in a development branch https://github.com/adeas31/OMEdit/commit/c993482c9113ef7348aaea49739ecae7ad2da5f5 for OpenModelica 1.9.4 final release.
comment:5 by , 10 years ago
| Resolution: | → fixed |
|---|---|
| Status: | accepted → closed |
The fix is now available via the nightly build.
Note:
See TracTickets
for help on using tickets.

Milestone changed to 1.9.3 since 1.9.2 was released.