# HG changeset patch # User Balazs Dezso # Date 2009-01-18 17:49:08 # Node ID fb5af0411793f29be076eb0ef6945d8b77ea3c1b # Parent 81627fa1b0070a8175724f70868125203730fec9 Fix lp indexing bug (#205) diff --git a/lemon/lp_base.h b/lemon/lp_base.h --- a/lemon/lp_base.h +++ b/lemon/lp_base.h @@ -1067,8 +1067,8 @@ ///a better one. void col(Col c, const DualExpr &e) { e.simplify(); - _setColCoeffs(cols(id(c)), ExprIterator(e.comps.begin(), cols), - ExprIterator(e.comps.end(), cols)); + _setColCoeffs(cols(id(c)), ExprIterator(e.comps.begin(), rows), + ExprIterator(e.comps.end(), rows)); } ///Get a column (i.e a dual constraint) of the LP