﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
4410	moving a replaceable object in the block diagram duplicates the graphical annotation in text view	Andrea Bartolini	Adrian Pop	"consider the following model (also attached):

{{{
package test
  partial model A
    annotation(
      Diagram,
      Icon(graphics = {Rectangle(extent = {{-100, 100}, {100, -100}}), Text(origin = {2, -1}, extent = {{-32, 41}, {32, -41}}, textString = ""A"")}));
  end A;

  model B
    extends A;
  end B;

model C
  replaceable B b1 constrainedby A annotation(
    Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
end C;

end test;
}}}

now open the model C and move the model B in the block diagram, the graphical annotation in the text view is duplicated as follows:

{{{
model C
  replaceable test.B b1 annotation(
      Placement(visible = true, transformation(origin = {-24, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0))) constrainedby A annotation(
    Placement(visible = true, transformation(origin = {0, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
end C; 
}}}

this behavior seems depend from the presence of the clause ""constrainedby""

OMEdit 1.12.0~dev-290-g1b6ac20
Connected to OpenModelica 1.12.0~dev-703-g46bfb1f

sysop: linux Ubuntu 16.04 "	defect	accepted	critical		OMEdit	v1.12.0			Adrian Pop
