Skip to content

Commit

Permalink
ticket:4295 Handle __Dymola_checkBox annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Mar 6, 2017
1 parent c39a8f6 commit a2c3963
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OMEdit/OMEditGUI/Component/ComponentProperties.cpp
Expand Up @@ -71,7 +71,8 @@ Parameter::Parameter(Component *pComponent, bool showStartAttribute, QString tab
// set the value type based on component type.
OMCProxy *pOMCProxy = MainWindow::instance()->getOMCProxy();
if (mpComponent->getComponentInfo()->getClassName().compare("Boolean") == 0) {
if (mpComponent->getChoicesAnnotation().size() > 0 && mpComponent->getChoicesAnnotation().at(0).compare("true") == 0) {
if (mpComponent->getChoicesAnnotation().size() > 0 &&
(mpComponent->getChoicesAnnotation().at(0).compare("true") == 0 || mpComponent->getChoicesAnnotation().at(1).compare("true") == 0)) {
mValueType = Parameter::CheckBox;
} else {
mValueType = Parameter::Boolean;
Expand Down

0 comments on commit a2c3963

Please sign in to comment.