Commit [9a7665] stable  Maximize  Restore  History

bwdist: fix regression calculating closest-pixel map (bug #41709)

* bwdist.cc: fix regression caused with cset 4bb352ade7c7. The original code
written in C (edtfunc.c file) had variable "h" for width and "w" for height.
This was probably because the code was originally written for row-major order
and it would be easier to swap these two variables than all instances of it in
the code. This fix swaps all instances of "h" and "w" in the code. Assign
number of rows and columns to "w" and "h" respectively would accomplish the
same but may confusion again in the future. New tests were added to check
the second output argument.
* NEWS: add notice of fixing this regression for next stable release.

Carnë Draug Carnë Draug 2014-03-08

changed NEWS
changed src/bwdist.cc
NEWS Diff Switch to side-by-side view
Loading...
src/bwdist.cc Diff Switch to side-by-side view
Loading...

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks