Skip to content

Commit

Permalink
Use the defaultComponentName annotation as it is (#10873)
Browse files Browse the repository at this point in the history
Fixes #10862
Do not convert the defaultComponentName to camel case
  • Loading branch information
adeas31 committed Jun 20, 2023
1 parent 7460308 commit f53368f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMEdit/OMEditLIB/Modeling/ModelWidgetContainer.cpp
Expand Up @@ -1297,7 +1297,7 @@ QString GraphicsView::getUniqueElementName(const QString &nameStructure, const Q
*defaultName = MainWindow::instance()->getOMCProxy()->getDefaultComponentName(nameStructure);
QString newName;
if (!defaultName->isEmpty()) {
newName = getUniqueElementName(nameStructure, StringHandler::toCamelCase(*defaultName));
newName = getUniqueElementName(nameStructure, *defaultName);
} else {
newName = getUniqueElementName(nameStructure, StringHandler::toCamelCase(name));
}
Expand Down

0 comments on commit f53368f

Please sign in to comment.