<html><head><style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head><body class="hmmessage"><p>Hi Gerd</p>
<p>The -1 is used by convention in the Polish format. It doesn't have any meaning to the img format itself.<br>
</p>
<br><br><div class="gmail_quote">On 21 April 2015 10:36:32 GMT+01:00, Gerd Petermann <gpetermann_muenchen@hotmail.com> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">Hi Steve,<br /><br />thanks, <br />problem occurs when one side has NONE and the other hasn't.<br />I think the test should not produce values which the normal<br />program never does (NONE with -1 for start + end).<br />Or do you find such data in Garmin maps?<br />In that case meaby it has a special meaning?<br /><br />Gerd<br /><br /><br /><div>> Date: Tue, 21 Apr 2015 10:24:47 +0100<br />> From: steve@parabola.me.uk<br />> To: mkgmap-dev@lists.mkgmap.org.uk<br />> Subject: Re: [mkgmap-dev] error in NumberPreparer?<br />> <br />> <br />> Hi Gerd<br />> <br />> > it seems that NumberPreparer (in trunk) doesn't completely ignore<br />> > the start/end values when numberStyle == NONE.<br />> <br />> I was just going to post that the patch failed with NumberRangeTest,<br />> wheras trunk passes. It seems you may have found the answer but I<br />> don't think this code should be reached when both styles are NONE<br
/>> since it should have exited at numbers.isEmpty() -- at least in the<br />> original code.<br />> <br />> > See line 116:<br />> > if (first.getLeftStart() > first.getLeftEnd() ||<br />> > first.getRightStart() > first.getRightEnd())<br />> > initial = Math.max(initial, rightStart);<br />> > else if (rightStart > 0)<br />> > initial = Math.min(initial, rightStart);<br />> <br />> I've got to go out now, I will try to have a look at it later.<br />> <br />> ..Steve<br />> _______________________________________________<br />> mkgmap-dev mailing list<br />> mkgmap-dev@lists.mkgmap.org.uk<br />> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br /></div> </div>
<p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br />mkgmap-dev mailing list<br />mkgmap-dev@lists.mkgmap.org.uk<br /><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></pre></blockquote></div></body></html>