logo separator

[mkgmap-dev] error in NumberPreparer?

From Steve Ratcliffe steve at parabola.me.uk on Wed Apr 22 10:55:36 BST 2015

On 22/04/15 08:11, Gerd Petermann wrote:
> Besides that the img file with defaults -1 is a bit smaller, so I think
> we should change that in trunk (with the attached patch)

OK that would be safer.  I guess that no test showed up the problem
because both the Polish format and the tests make everything
initialized with -1, whereas I guess that the HousenumberGenerator did
not.  I think I will add a check to NetCheck for negative or zero
house numbers when read in, since they cannot be correct.

I would also like to add the following patch to the number preparer to
prevent any invalid number being used as a target in the
equalizeBases() method.

..Steve

-------------- next part --------------
A non-text attachment was scrubbed...
Name: number_preparer.patch
Type: text/x-patch
Size: 577 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150422/5c9ded2b/attachment.bin>


More information about the mkgmap-dev mailing list