# HG changeset patch # User Peter Kovacs # Date 2009-08-18 10:24:31 # Node ID 1f08e846df296135814062a8a9c4feb22c76d4ab # Parent 257e91516e09d8d6be58236c587e3e0199770412 Bug fix in Preflow and Circulation (#307) diff --git a/lemon/circulation.h b/lemon/circulation.h --- a/lemon/circulation.h +++ b/lemon/circulation.h @@ -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 --git a/lemon/preflow.h b/lemon/preflow.h --- a/lemon/preflow.h +++ b/lemon/preflow.h @@ -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