Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Do not set a default value of origin. Use the origin as transformation origin point only if it is defined in actual modelica code otherwise extract it from extent points.
- Only call snapPointToGrid when creating a shape/component otherwise use movePointByGrid.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24017 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adeas31 committed Jan 12, 2015
1 parent 4a5d82d commit bf32ebd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Compiler/FrontEnd/Constants.mo
Expand Up @@ -222,9 +222,9 @@ record FilledShape \"Style attributes for filled shapes\"
end FilledShape;
record Transformation
Real origin[2]/*(each final unit=\"mm\")*/ = {0.0, 0.0};
Real origin[2]/*(each final unit=\"mm\")*/;
Real extent[2,2]/*(each final unit=\"mm\")*/;
Real rotation/*(quantity=\"angle\", unit=\"deg\")*/=0;
Real rotation/*(quantity=\"angle\", unit=\"deg\")*/;
end Transformation;
record Placement
Expand Down

0 comments on commit bf32ebd

Please sign in to comment.