Skip to content

Commit

Permalink
Fix use of 'scale' and 'OneWayFlow' options in ReactionPathDiagram
Browse files Browse the repository at this point in the history
Fixes #378
  • Loading branch information
speth committed Feb 13, 2017
1 parent 7673f7c commit 0d982c8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/kinetics/ReactionPath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 0d982c8

Please sign in to comment.