Skip to content

Commit

Permalink
The order of the base classes matters
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@19059 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Feb 11, 2014
1 parent c5640a5 commit a005f08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Examples/generate_icons.py
Expand Up @@ -1095,7 +1095,7 @@ def exportIcon(modelicaClass, base_classes, includeInvisbleText):

for base_class in base_classes:
graphics = getGraphicsWithPortsForClass(base_class)
iconGraphics.append(graphics)
iconGraphics.insert(0,graphics)
graphics = getGraphicsWithPortsForClass(modelicaClass)
iconGraphics.append(graphics)

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


# Note: The order of the base classes matters
def getBaseClasses(modelica_class, base_classes):
inheritance_cnt = ask_omc('getInheritanceCount', modelica_class)

Expand Down

0 comments on commit a005f08

Please sign in to comment.