From eef5540418acd798474767436005b69d0573785d Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Fri, 27 Jan 2017 16:10:48 -0500 Subject: [PATCH] Fix use of 'scale' and 'OneWayFlow' options in ReactionPathDiagram Fixes #378 --- src/kinetics/ReactionPath.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/kinetics/ReactionPath.cpp b/src/kinetics/ReactionPath.cpp index f20fe4bbe5..fe7623f453 100644 --- a/src/kinetics/ReactionPath.cpp +++ b/src/kinetics/ReactionPath.cpp @@ -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++) {