Opened 15 years ago
Last modified 15 years ago
#1324 closed defect (fixed)
updateConnection API deletes the connection but doesn't update it.
| Reported by: | Adrian Pop | Owned by: | Adrian Pop |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Interactive Model Editor Interface | Version: | 1.6.0 |
| Keywords: | Cc: | Adrian Pop, Adrian Pop, 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; " ""
Note:
See TracTickets
for help on using tickets.

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