# HG changeset patch # User Balazs Dezso # Date 2009-12-10 09:09:08 # Node ID 207ba6c0f2e478ad0014c1b1b23aac6b0979a8fa # Parent 6be1f9bd2ac079ce3a039f0aefc4747c5a2a8f2f Fix LpBase::addRow(Constr) (#334) diff --git a/lemon/lp_base.h b/lemon/lp_base.h --- a/lemon/lp_base.h +++ b/lemon/lp_base.h @@ -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