Skip to content

Commit

Permalink
Handle empty origin and rotation
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@25339 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
sjoelund committed Mar 31, 2015
1 parent b853bbc commit 07c4c44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Examples/generate_icons.py
Expand Up @@ -372,6 +372,9 @@ def getGraphicsWithPortsForClass(modelicaClass):
# fallback to diagram annotations
index_delta = 0

for i in [1,2,7]:
if comp_annotation[i + index_delta] == "-":
comp_annotation[i + index_delta] = 0
origin_x = comp_annotation[1 + index_delta]
origin_y = comp_annotation[2 + index_delta]
x0 = comp_annotation[3 + index_delta]
Expand Down

0 comments on commit 07c4c44

Please sign in to comment.