
URL: https://svn.lrde.epita.fr/svn/oln/trunk/milena ChangeLog: 2007-10-22 Matthieu Garrigues <garrigues@lrde.epita.fr> Fix box resizing. * mln/core/box.hh: Fix. * tests/convert_to_image.cc: Update. --- mln/core/box.hh | 8 ++++---- tests/convert_to_image.cc | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) Index: trunk/milena/tests/convert_to_image.cc =================================================================== --- trunk/milena/tests/convert_to_image.cc (revision 1368) +++ trunk/milena/tests/convert_to_image.cc (revision 1369) @@ -57,7 +57,7 @@ 0, 1, 0, // < center point 1, 0, 1 }; - image2d<bool> ima_X = convert::to_image(box_3x3 | fun::p2b::chess); + image2d<bool> ima_X = convert::to_image(box_3x3 | fun::p2b::chess, 0); window2d win_X = make::window2d(X); mln_assertion(convert::to_image(win_X) == ima_X); Index: trunk/milena/mln/core/box.hh =================================================================== --- trunk/milena/mln/core/box.hh (revision 1368) +++ trunk/milena/mln/core/box.hh (revision 1369) @@ -214,8 +214,8 @@ { for (unsigned i = 0; i < P::dim; ++i) { - pmin[i] -= b; - pmax[i] += b; + pmin_[i] -= b; + pmax_[i] += b; } } @@ -228,8 +228,8 @@ for (unsigned i = 0; i < P::dim; ++i) { - tmp.pmin[i] -= b; - tmp.pmax[i] += b; + tmp.pmin_[i] -= b; + tmp.pmax_[i] += b; } return tmp; }