Skip to content

Commit

Permalink
Some minor cleaning up.
Browse files Browse the repository at this point in the history
  • Loading branch information
agarny committed Oct 7, 2019
1 parent ebbf892 commit 8037c9e
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3159,11 +3159,13 @@ bool SimulationExperimentViewSimulationWidget::furtherInitialize()
// Line

libsedml::SedStyle *sedmlStyle = sedmlDocument->getStyle(sedmlCurve->getStyle());
libsedml::SedLine *sedmlLine = sedmlStyle->getLine();
libsedml::SedLine *sedmlLine = (sedmlStyle != nullptr)?sedmlStyle->getLine():nullptr;

lineStyle = SEDMLSupport::lineStyle(sedmlLine->getStyle());
lineWidth = int(sedmlLine->getThickness());
lineColor = SEDMLSupport::color(sedmlLine->getColor());
if (sedmlLine != nullptr) {
lineStyle = SEDMLSupport::lineStyle(sedmlLine->getStyle());
lineWidth = int(sedmlLine->getThickness());
lineColor = SEDMLSupport::color(sedmlLine->getColor());
}
}

libsedml::SedVariable *xVariable = sedmlDocument->getDataGenerator(sedmlCurve->getXDataReference())->getVariable(0);
Expand Down

0 comments on commit 8037c9e

Please # to comment.