Skip to content

Commit

Permalink
Remove the debug message that a variable is not found (#7622)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Jun 28, 2021
1 parent d7e694f commit 6cb8fc6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions OMEdit/OMEditLIB/Plotting/VariablesWidget.cpp
Expand Up @@ -1137,10 +1137,7 @@ void VariablesTreeModel::getVariableInformation(ModelicaMatReader *pMatReader, Q
} else { /* Read the final value of the variable. Only mat result files are supported. */
if ((pMatReader->file != NULL) && strcmp(pMatReader->fileName, "")) {
*value = "";
ModelicaMatVariable_t *var;
if (0 == (var = omc_matlab4_find_var(pMatReader, variableToFind.toUtf8().constData()))) {
qDebug() << QString("%1 not found in %2").arg(variableToFind).arg(pMatReader->fileName);
}
ModelicaMatVariable_t *var = omc_matlab4_find_var(pMatReader, variableToFind.toUtf8().constData());
double res;
if (var && !omc_matlab4_val(&res, pMatReader, var, omc_matlab4_stopTime(pMatReader))) {
*value = QString::number(res);
Expand Down

0 comments on commit 6cb8fc6

Please sign in to comment.