# HG changeset patch # User Balazs Dezso # Date 1232297348 -3600 # Node ID fb5af0411793f29be076eb0ef6945d8b77ea3c1b # Parent 81627fa1b0070a8175724f70868125203730fec9 Fix lp indexing bug (#205) diff -r 81627fa1b007 -r fb5af0411793 lemon/lp_base.h --- a/lemon/lp_base.h Wed Jan 14 15:55:29 2009 +0000 +++ b/lemon/lp_base.h Sun Jan 18 17:49:08 2009 +0100 @@ -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