
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