@@ -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