Skip to content

Commit 8aa3fd4

Browse files
committed
Set the stroke color of reaction arcs when setting the stroke color of the reaction.
1 parent 762bf1c commit 8aa3fd4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/libsbmlnetwork_sbmldocument_render.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4247,6 +4247,9 @@ int setStrokeColor(SBMLDocument* document, GraphicalObject* graphicalObject, con
42474247
if (!style)
42484248
style = createLocalStyle(document, graphicalObject);
42494249
setReactionLineEndingStrokeColor(document, getReactionId(graphicalObject), 0, stroke);
4250+
for (unsigned int i = 0; i < getNumSpeciesReferences(graphicalObject); i++) {
4251+
setStrokeColor(document, getSpeciesReference(document, getReactionId(graphicalObject), 0, i), stroke);
4252+
}
42504253
std::string colorId = addColor(document, style, stroke);
42514254
return setStrokeColor(style, colorId, getValue(document, colorId));
42524255
}
@@ -4260,6 +4263,9 @@ int setStrokeColor(SBMLDocument* document, const std::string& attribute, const s
42604263
if (!style)
42614264
style = createLocalStyle(document, attribute);
42624265
setReactionLineEndingStrokeColor(document, attribute, 0, stroke);
4266+
for (unsigned int i = 0; i < getNumSpeciesReferences(document, attribute); i++) {
4267+
setStrokeColor(document, getSpeciesReference(document, attribute, 0, i), stroke);
4268+
}
42634269
std::string colorId = addColor(document, style, stroke);
42644270
return setStrokeColor(style, colorId, getValue(document, colorId));
42654271
}

0 commit comments

Comments
 (0)