diff -r d2bc45e8f6f2 -r b9b2e8abe70b lemon/lp_base.h --- a/lemon/lp_base.h Sun Feb 14 23:14:09 2010 +0100 +++ b/lemon/lp_base.h Mon Feb 15 09:03:11 2010 +0100 @@ -1229,10 +1229,10 @@ Row addRow(const Constr &c) { Row r; c.expr().simplify(); - r._id = _addRowId(_addRow(c.lowerBounded()?c.lowerBound():-INF, + r._id = _addRowId(_addRow(c.lowerBounded()?c.lowerBound()-*c.expr():-INF, ExprIterator(c.expr().comps.begin(), cols), ExprIterator(c.expr().comps.end(), cols), - c.upperBounded()?c.upperBound():INF)); + c.upperBounded()?c.upperBound()-*c.expr():INF)); return r; } ///Erase a column (i.e a variable) from the LP