On Nov 28, 2009, at 18:15, Lambertus wrote:

> If you catch the error can you print an warning/error? I don't 
> understand why the map would potentially be broken? Is it possibile to 
> leave the POI out entirely and would that prevent a broken map?

Try the attached patch. It catches the index out of bounds error, and prints an 
error message: the (incorrect) index which was encoded in the POI, the last 
index of the array, and the POI label, if it has one. The city information will 
then not be written.

This will at least prevent the crash.

Cheers.

Attachment: cg-skip-bad-city-index.patch
Description: Binary data

_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to