# HG changeset patch # User Alpar Juttner # Date 1251695113 -7200 # Node ID 31a389202e6527b86c7c71efc5d73bf35950f845 # Parent 4f9219730eb4fc4772577260b29d3b8c738ab57f# Parent 1f08e846df296135814062a8a9c4feb22c76d4ab Merge bugfix #307 diff -r 4f9219730eb4 -r 31a389202e65 lemon/circulation.h --- a/lemon/circulation.h Thu Aug 20 22:45:40 2009 +0200 +++ b/lemon/circulation.h Mon Aug 31 07:05:13 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 4f9219730eb4 -r 31a389202e65 lemon/preflow.h --- a/lemon/preflow.h Thu Aug 20 22:45:40 2009 +0200 +++ b/lemon/preflow.h Mon Aug 31 07:05:13 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