Skip to content

Commit a005f08

Browse files
committed
The order of the base classes matters
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19059 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
1 parent c5640a5 commit a005f08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Examples/generate_icons.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ def exportIcon(modelicaClass, base_classes, includeInvisbleText):
10951095

10961096
for base_class in base_classes:
10971097
graphics = getGraphicsWithPortsForClass(base_class)
1098-
iconGraphics.append(graphics)
1098+
iconGraphics.insert(0,graphics)
10991099
graphics = getGraphicsWithPortsForClass(modelicaClass)
11001100
iconGraphics.append(graphics)
11011101

@@ -1106,7 +1106,7 @@ def exportIcon(modelicaClass, base_classes, includeInvisbleText):
11061106
dwg = generateSvg(os.path.join(output_dir, classToFileName(modelicaClass) + ".svg"), iconGraphics, includeInvisbleText)
11071107
return dwg
11081108

1109-
1109+
# Note: The order of the base classes matters
11101110
def getBaseClasses(modelica_class, base_classes):
11111111
inheritance_cnt = ask_omc('getInheritanceCount', modelica_class)
11121112

0 commit comments

Comments
 (0)