
Thanks Steve I've applied the patch to my system and it behaves as expected. Ticker On Fri, 2018-11-09 at 15:34 +0000, Steve Ratcliffe wrote:
Hi Ticker
I'm having problems with the TYP file appearing corrupt. A simple file was working as expected, but adding a bit more caused very strange display properties in unrelated items on the Garmin device - eg, an area showed as a pattern never seen before, and, when selected, claimed to be waypoint.
The troublesome polygon is this one:
[_polygon] Type=0x58 ; crashes with: String=County ; corruption with: String=Countyxxxxx Xpm="16 16 2 1" ". c none" "1 c #FFFFFF" "................" "................" [ ... ]
It has a size of 16x16, but polygon bitmaps must be 32x32.
Although documented (at http://www.mkgmap.org.uk/doc/typ-compiler), this restriction is not checked by the code, sorry about that.
I've attached a patch to check this. There are other possible checks so this may be expanded before committing.
Steve _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev