Fix another bug around the borders.
commitd45dd890e724e41920caa2634d49add1b8f3b196
authorBenoit Sigoure <tsuna@lrde.epita.fr>
Mon, 10 Dec 2007 21:53:10 +0000 (10 22:53 +0100)
committerBenoit Sigoure <tsuna@lrde.epita.fr>
Mon, 10 Dec 2007 21:53:10 +0000 (10 22:53 +0100)
tree2cd221c4d285cb0a52b4ce8a2550ebce44aca433
parent548bbc90c34553c059390f77659ab5ab4313962c
Fix another bug around the borders.

* src/nrg.cc (get_nrg): Duplicate the borders before computing the
energy.
* src/seam.cc (accumulate_nrg): Do not access the cumulative minimum
energy outside the borders.

Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>
src/nrg.cc
src/seam.cc