Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#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 Adeel Asghar, 10 years ago

Status: newaccepted

comment:2 by Martin Sjölund, 10 years ago

Milestone: 1.9.21.9.3

Milestone changed to 1.9.3 since 1.9.2 was released.

comment:3 by Martin Sjölund, 9 years ago

Milestone: 1.9.31.9.4

Moved to new milestone 1.9.4

comment:4 by Adeel Asghar, 9 years ago

This issue has now been fixed in a development branch https://github.com/adeas31/OMEdit/tree/indentation for OpenModelica 1.9.4 final release.

Version 1, edited 9 years ago by Adeel Asghar (previous) (next) (diff)

comment:5 by Adeel Asghar, 9 years ago

Resolution: fixed
Status: acceptedclosed

The fix is now available via the nightly build.

comment:6 by Martin Sjölund, 9 years ago

Milestone: 1.9.41.9.4-1.9.x

Milestone renamed

comment:7 by Martin Sjölund, 9 years ago

Milestone: 1.9.4-1.9.x1.9.4

Milestone renamed

Note: See TracTickets for help on using tickets.