Skip to content

Commit 15d6952

Browse files
committed
- fixed getIconAnnotation and getDiagramAnnotation to get rid of the empty component:
before: {x1,y1,x2,y2,,{graphics_elements}} after: {x1,y1,x2,y2,{graphics_elements}} git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@3828 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent ac4190d commit 15d6952

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Compiler/DAE.mo

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3471,6 +3471,12 @@ algorithm
34713471
Option<Absyn.Comment> comment;
34723472
Absyn.InnerOuter io;
34733473
Types.Type tp;
3474+
/* adrpo: filter out records! */
3475+
case ((x as VAR(ty = RECORD(_))) :: lst)
3476+
equation
3477+
res = getVariableList(lst);
3478+
then
3479+
(res);
34743480
case ((x as VAR(_,_,_,_,_,_,_,_,_,_,_,_,_,_)) :: lst)
34753481
equation
34763482
res = getVariableList(lst);

Compiler/Interactive.mo

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13125,7 +13125,11 @@ algorithm
1312513125
(_,mod_2) = Mod.elabMod(Env.emptyCache,env, Prefix.NOPRE(), mod_1, true);
1312613126
(_,dae,_,cs,t,state) = Inst.instClass(Env.emptyCache,env, mod_2, Prefix.NOPRE(), Connect.emptySet,
1312713127
placementclass, {}, false, Inst.TOP_CALL());
13128+
//debug_print("dae", dae);
13129+
//print("before:\n"); print(intString(listLength(dae))); print(" "); DAE.dump(DAE.DAE(dae)); print(Print.getString()); print ("\n");
1312813130
dae_1 = Inst.initVarsModelicaOutput(dae) "Put bindings of variables as expressions inside variable elements of the dae instead of equations" ;
13131+
//debug_print("dae_1", dae_1);
13132+
//print("after:\n"); print(intString(listLength(dae_1))); print(" "); DAE.dump(DAE.DAE(dae_1)); print(Print.getString()); print ("\n");
1312913133
str = DAE.getVariableBindingsStr(dae_1);
1313013134
then
1313113135
str;

0 commit comments

Comments
 (0)