Fix use of 'scale' and 'OneWayFlow' options in ReactionPathDiagram
Fixes #378
This commit is contained in:
parent
7673f7cb52
commit
0d982c8f58
1 changed files with 6 additions and 2 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue