#6128 closed defect (fixed)
OMEdit deletes the redeclare clause when a parameter value is changed
| Reported by: | Andrea Bartolini | Owned by: | Adeel Asghar |
|---|---|---|---|
| Priority: | blocker | Milestone: | 1.16.0 |
| Component: | OMEdit | Version: | v1.16.0-dev |
| Keywords: | Cc: | Francesco Casella |
Description
Steps to reproduce the issue:
1) open the attached package TestReplaceable.mo
2) open model S1, it appears as follows:
model S1
TestReplaceable.M m(
redeclare model RM = TestReplaceable.RM1,
p = 5) annotation(
Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
end S1;
3) double click to model M and change the p value (e.g. to 6), the models S1 now appears as follows:
model S1
TestReplaceable.M m(
p = 6) annotation(
Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
end S1;
The redeclare clause has been deleted...
OMEdit - OpenModelica Connection Editor
Connected to OpenModelica 1.16.0~dev-640-g99a56f3
Sysop: Ubuntu 18.04
Attachments (1)
Change History (5)
by , 5 years ago
| Attachment: | TestReplaceable.mo added |
|---|
comment:1 by , 5 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
comment:3 by , 5 years ago
| Milestone: | 1.16.1 → 1.16.0 |
|---|
Note:
See TracTickets
for help on using tickets.

Fixed via:
https://github.com/OpenModelica/OpenModelica/pull/6777