From 6fa01d9533664c4e37c4810939772bb05c9042b4 Mon Sep 17 00:00:00 2001 From: Alan Garny Date: Wed, 9 Oct 2019 10:27:40 +1300 Subject: [PATCH] Simulation Experiment view: updated SED-ML related code following the release of libSEDML 2.0.7 (#2053). --- .../src/simulationexperimentviewsimulationwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/simulation/SimulationExperimentView/src/simulationexperimentviewsimulationwidget.cpp b/src/plugins/simulation/SimulationExperimentView/src/simulationexperimentviewsimulationwidget.cpp index afced2e6f7..daa199eb04 100644 --- a/src/plugins/simulation/SimulationExperimentView/src/simulationexperimentviewsimulationwidget.cpp +++ b/src/plugins/simulation/SimulationExperimentView/src/simulationexperimentviewsimulationwidget.cpp @@ -2052,7 +2052,7 @@ bool SimulationExperimentViewSimulationWidget::createSedmlFile(SEDMLSupport::Sed sedmlStyle->setId(QString("style%1_%2").arg(data.graphPlotCounter) .arg(graphCounter).toStdString()); - libsedml::SedLine *sedmlLine = sedmlStyle->createLine(); + libsedml::SedLine *sedmlLine = sedmlStyle->createLineStyle(); Core::Properties lineProperties = properties[4]->properties(); sedmlLine->setStyle(SEDMLSupport::sedmlLineStyle(lineProperties[0]->listValueIndex())); @@ -3110,7 +3110,7 @@ bool SimulationExperimentViewSimulationWidget::furtherInitialize() // Line libsedml::SedStyle *sedmlStyle = sedmlDocument->getStyle(sedmlCurve->getStyle()); - libsedml::SedLine *sedmlLine = (sedmlStyle != nullptr)?sedmlStyle->getLine():nullptr; + libsedml::SedLine *sedmlLine = (sedmlStyle != nullptr)?sedmlStyle->getLineStyle():nullptr; if (sedmlLine != nullptr) { lineStyle = SEDMLSupport::lineStyle(sedmlLine->getStyle());