Skip to content

Commit

Permalink
Convert display symbol back to unit (OpenModelica#7908)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Sep 30, 2021
1 parent db90e32 commit fb86fb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OMEdit/OMEditLIB/Util/Utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1288,6 +1288,8 @@ QString Utilities::convertSymbolToUnit(const QString symbol)
// Greek Omega
if (symbol.compare(QChar(937)) == 0) {
return "Ohm";
} else if (symbol.compare(QString("%1C").arg(QChar(176))) == 0) {
return "degC";
} else {
return symbol;
}
Expand Down

0 comments on commit fb86fb4

Please sign in to comment.