Skip to content

Commit

Permalink
Update the array plots on the re-simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Aug 22, 2019
1 parent 1509b42 commit 679b05e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OMEdit/OMEdit/OMEditGUI/Plotting/VariablesWidget.cpp
Expand Up @@ -1237,7 +1237,7 @@ void VariablesWidget::variablesUpdated()
PlotWindow *pPlotWindow = qobject_cast<PlotWindow*>(pSubWindow->widget());
if (pPlotWindow) { // we can have an AnimateWindow there as well so always check
foreach (PlotCurve *pPlotCurve, pPlotWindow->getPlot()->getPlotCurvesList()) {
if (pPlotWindow->getPlotType() == PlotWindow::PLOT) {
if (pPlotWindow->getPlotType() == PlotWindow::PLOT || pPlotWindow->getPlotType() == PlotWindow::PLOTARRAY) {
QString curveNameStructure = pPlotCurve->getNameStructure();
VariablesTreeItem *pVariableTreeItem;
pVariableTreeItem = mpVariablesTreeModel->findVariablesTreeItem(curveNameStructure, mpVariablesTreeModel->getRootVariablesTreeItem());
Expand All @@ -1251,7 +1251,7 @@ void VariablesWidget::variablesUpdated()
} else {
pPlotWindow->getPlot()->removeCurve(pPlotCurve);
}
} else if (pPlotWindow->getPlotType() == PlotWindow::PLOTPARAMETRIC) {
} else if (pPlotWindow->getPlotType() == PlotWindow::PLOTPARAMETRIC || pPlotWindow->getPlotType() == PlotWindow::PLOTARRAYPARAMETRIC) {
QString xVariable = QString(pPlotCurve->getFileName()).append(".").append(pPlotCurve->getXVariable());
VariablesTreeItem *pXVariableTreeItem;
pXVariableTreeItem = mpVariablesTreeModel->findVariablesTreeItem(xVariable, mpVariablesTreeModel->getRootVariablesTreeItem());
Expand Down

0 comments on commit 679b05e

Please sign in to comment.