Skip to content

Commit c4986d0

Browse files
committed
- Fix for deleteConnection where the equations have subscripts
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@9530 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent 9db2da6 commit c4986d0

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

Compiler/Script/Interactive.mo

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11211,16 +11211,8 @@ algorithm
1121111211
case ({},_,_) then {};
1121211212
case ((Absyn.EQUATIONITEM(equation_ = Absyn.EQ_CONNECT(connector1 = cn1,connector2 = cn2)) :: xs),c1,c2)
1121311213
equation
11214-
p1 = Absyn.crefToPath(c1);
11215-
s1 = Absyn.pathString(p1);
11216-
p2 = Absyn.crefToPath(c2);
11217-
s2 = Absyn.pathString(p2);
11218-
pn1 = Absyn.crefToPath(cn1);
11219-
sn1 = Absyn.pathString(pn1);
11220-
pn2 = Absyn.crefToPath(cn2);
11221-
sn2 = Absyn.pathString(pn2);
11222-
true = stringEq(s1, sn1);
11223-
true = stringEq(s2, sn2);
11214+
true = Absyn.crefEqual(c1,cn1);
11215+
true = Absyn.crefEqual(c2,cn2);
1122411216
res = deleteEquationInEqlist(xs, c1, c2);
1122511217
then
1122611218
res;

0 commit comments

Comments
 (0)