Skip to content

Commit

Permalink
Use omc pretty-printing when diffModelicaFileListings() fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Feb 25, 2016
1 parent 1db86bd commit c698004
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OMEdit/OMEditGUI/OMC/OMCProxy.cpp
Expand Up @@ -1626,6 +1626,10 @@ QString OMCProxy::diffModelicaFileListings(QString before, QString after)
if (mpMainWindow->getOptionsDialog()->getModelicaTextEditorPage()->getPreserveTextIndentationCheckBox()->isChecked()) {
sendCommand("diffModelicaFileListings(\"" + escapedBefore + "\", \"" + escapedAfter + "\", OpenModelica.Scripting.DiffFormat.plain)");
result = StringHandler::unparse(getResult());
printMessagesStringInternal();
if (result.isEmpty()) {
result = after; // use omc pretty-printing since diffModelicaFileListings() failed.
}
} else {
result = after;
}
Expand Down

0 comments on commit c698004

Please sign in to comment.