Fix use of 'scale' and 'OneWayFlow' options in ReactionPathDiagram

Fixes #378
This commit is contained in:
Ray Speth 2017-01-27 16:10:48 -05:00
parent 7673f7cb52
commit 0d982c8f58

View file

@ -307,8 +307,12 @@ void ReactionPathDiagram::exportToDot(ostream& s)
}
}
} else {
for (size_t i = 0; i < nPaths(); i++) {
flmax = std::max(path(i)->flow(), flmax);
if (scale < 0) {
for (size_t i = 0; i < nPaths(); i++) {
flmax = std::max(path(i)->flow(), flmax);
}
} else {
flmax = scale;
}
for (size_t i = 0; i < nPaths(); i++) {