﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4204	Parameter string not displayed correctly in diagram view	Christian Kral <dr.christian.kral@…>	Adeel Asghar	"Consider the following model

{{{
package TestName
record ModuleData
  extends Modelica.Icons.Record;
  parameter String moduleName = ""Generic"";
  annotation(
    defaultComponentName = ""moduleData"",
    defaultComponentPrefixes = ""parameter"",
  Icon(graphics = {Text(origin = {0, -130}, extent = {{-148, -20}, {148, 20}}, textString = ""%moduleName"")}));
end ModuleData;

  model Module1
    extends TestName.ModuleData(moduleName=""Module1"");
  annotation(
      defaultComponentName = ""moduleData"",
      defaultComponentPrefixes = ""parameter"",
    Icon(coordinateSystem(initialScale = 0.1), graphics = {Text(origin = {0, -180}, lineColor = {255, 0, 0}, extent = {{-150, -10}, {150, 30}}, textString = ""%moduleName"", fontName = ""DejaVu Sans Mono"")}));
  end Module1;

  model Example
    extends Modelica.Icons.Example;
    parameter TestName.ModuleData moduleData annotation(
      Placement(visible = true, transformation(origin = {-30, 2}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
    parameter TestName.Module1 moduleData1 annotation(
      Placement(visible = true, transformation(origin = {50, 2}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  end Example;
end TestName;
}}}

Now switch to the Diagram View of Example. The string {{{moduleName}}} is written in black in record {{{ModuleData}}} using the text string {{{%moduleName}}} in the icon layer. Record {{{Module1}}} extends from {{{ModuleData}}} and changes the text string. However, the inherited text string {{{%moduleName}}} (black) does not show the correct name, but the additional text string {{{%moduleName}}} (red) of {{{Module1}}} is displayed correctly. The black and red text shall be equal."	defect	closed	high	1.12.0	OMEdit		fixed		
