Skip to content

Commit

Permalink
Omit listing of $cse and $TMP variables in OMEdit for Cpp runtime
Browse files Browse the repository at this point in the history
See Variables browser in Plot view.
The Cpp runtime follows the FMI convention of converting $ chars to _D_.
  • Loading branch information
rfranke committed Sep 6, 2021
1 parent b4f8972 commit 042bd34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMEdit/OMEditLIB/Plotting/VariablesWidget.cpp
Expand Up @@ -572,7 +572,7 @@ void VariablesTreeModel::parseInitXml(QXmlStreamReader &xmlReader, QStringList*
/* If it's named ScalarVariable, we'll dig the information from there.*/
if (xmlReader.name() == "ScalarVariable") {
QHash<QString, QString> scalarVariable = parseScalarVariable(xmlReader);
if (!scalarVariable.value("name").startsWith("$")) {
if (!scalarVariable.value("name").startsWith("$") && !scalarVariable.value("name").startsWith("_D_")) {
mScalarVariablesHash.insert(scalarVariable.value("name"),scalarVariable);
if (addVariablesToList) {
variablesList->append(scalarVariable.value("name"));
Expand Down

0 comments on commit 042bd34

Please sign in to comment.