Opened 14 years ago

Last modified 14 years ago

#1324 closed defect (fixed)

updateConnection API deletes the connection but doesn't update it.

Reported by: adrpo Owned by: adrpo
Priority: high Milestone:
Component: Interactive Model Editor Interface Version: 1.6.0
Keywords: Cc: adrpo, adrpo, donida

Description

For this updateConnection.mos script:

createModel(A); getErrorString();
addConnection(a,b,A); getErrorString();
setConnectionComment(A,a,b,"connecting a and b"); getErrorString();
list();	getErrorString();
updateConnection(a, b, A, annotate=Line(points = {{-22.0,15.0},{32.0,15.0},{32.0,16.0}})); getErrorString();
list();	getErrorString();

we get this wrong restult; see that the connection is deleted:

adrpo@kafka ~/dev/OpenModelica/testsuite/mosfiles-nosim
$ ../../build/bin/omc updateConnection.mos           
true
""
Ok
""
Ok
""
"model A

equation 
  connect(a,b) "connecting a and b";
end A;

"
""
Ok
""
"model A
end A;

"
""

Change History (1)

comment:1 Changed 14 years ago by adrpo

Fixed in revision: 6432 and added test for this bug. See SCM Commits.

Note: See TracTickets for help on using tickets.