﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
6277	Parameter with negative sign changes display unit	Christian Kral <dr.christian.kral@…>	Adeel Asghar	"Consider the following (attached) example:

{{{
model Degree
  Modelica.Electrical.QuasiStationary.SinglePhase.Basic.Ground ground annotation(
    Placement(visible = true, transformation(origin = {0, -26}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
  Modelica.Electrical.QuasiStationary.SinglePhase.Sources.VoltageSource voltageSource(phi (displayUnit = ""deg"") = 0)  annotation(
    Placement(visible = true, transformation(origin = {0, 10}, extent = {{-10, -10}, {10, 10}}, rotation = -90)));
equation
  connect(voltageSource.pin_n, ground.pin) annotation(
    Line(points = {{0, 0}, {0, -16}}, color = {85, 170, 255}));
  annotation(
    uses(Modelica(version = ""3.2.3"")));
end Degree;
}}}

For the angle {{{phi}}} the display unit {{{deg}}} is defined. 

I perform a double click on the voltage source model to change the parameter settings. I mark the {{{0}}} of {{{phi}}} by double clicking on it and to then overwrite it with a new negative number. As I start typing the negative sign, e.g. in {{{-240}}}, the display unit switches to {{{rad}}}."	defect	new	high		OMEdit	v1.17.0-dev			
