# HG changeset patch # User Alpar Juttner # Date 2009-08-31 07:05:13 # Node ID 31a389202e6527b86c7c71efc5d73bf35950f845 # Parent 4f9219730eb4fc4772577260b29d3b8c738ab57f # Parent 1f08e846df296135814062a8a9c4feb22c76d4ab Merge bugfix #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