Skip to content

Commit

Permalink
Added default placement annotation for components that doesn't have one.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Oct 14, 2015
1 parent 809c928 commit 17c1031
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OMEdit/OMEditGUI/Modeling/ModelWidgetContainer.cpp
Expand Up @@ -3125,6 +3125,9 @@ void ModelWidget::getModelComponents()
QString transformation = "";
if (componentsAnnotationsList.size() >= i) {
transformation = StringHandler::getPlacementAnnotation(componentsAnnotationsList.at(i));
if (transformation.isEmpty()) {
transformation = "Placement(false,0.0,0.0,-10.0,-10.0,10.0,10.0,0.0,-,-,-,-,-,-,)";
}
}
mpDiagramGraphicsView->addComponentToView(pComponentInfo->getName(), pLibraryTreeItem, transformation, QPointF(0, 0), pComponentInfo,
false, true);
Expand Down

0 comments on commit 17c1031

Please sign in to comment.