Skip to content

Commit

Permalink
Simulation Experiment view: updated SED-ML related code following the…
Browse files Browse the repository at this point in the history
… release of libSEDML 2.0.7 (opencor#2053).
  • Loading branch information
agarny committed Oct 8, 2019
1 parent 8645344 commit 6fa01d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 6fa01d9

Please # to comment.