# HG changeset patch # User Peter Kovacs # Date 1250583871 -7200 # Node ID 1f08e846df296135814062a8a9c4feb22c76d4ab # Parent 257e91516e09d8d6be58236c587e3e0199770412 Bug fix in Preflow and Circulation (#307) diff -r 257e91516e09 -r 1f08e846df29 lemon/circulation.h --- a/lemon/circulation.h Fri May 29 17:46:48 2009 +0100 +++ b/lemon/circulation.h Tue Aug 18 10:24:31 2009 +0200 @@ -453,7 +453,7 @@ /// \brief Sets the tolerance used by algorithm. /// /// Sets the tolerance used by algorithm. - Circulation& tolerance(const Tolerance& tolerance) const { + Circulation& tolerance(const Tolerance& tolerance) { _tol = tolerance; return *this; } @@ -462,7 +462,7 @@ /// /// Returns a const reference to the tolerance. const Tolerance& tolerance() const { - return tolerance; + return _tol; } /// \name Execution Control diff -r 257e91516e09 -r 1f08e846df29 lemon/preflow.h --- a/lemon/preflow.h Fri May 29 17:46:48 2009 +0100 +++ b/lemon/preflow.h Tue Aug 18 10:24:31 2009 +0200 @@ -374,7 +374,7 @@ /// \brief Sets the tolerance used by algorithm. /// /// Sets the tolerance used by algorithm. - Preflow& tolerance(const Tolerance& tolerance) const { + Preflow& tolerance(const Tolerance& tolerance) { _tolerance = tolerance; return *this; } @@ -383,7 +383,7 @@ /// /// Returns a const reference to the tolerance. const Tolerance& tolerance() const { - return tolerance; + return _tolerance; } /// \name Execution Control