logo separator

[mkgmap-dev] [PATCH v1] Random changes in img file sizes since r2477

From Gerd Petermann gpetermann_muenchen at hotmail.com on Tue Feb 26 22:17:39 GMT 2013

Hi WanMil,

I did not try, but looking at the patch I am sure that this will fix the problem. 

Gerd 

Date: Tue, 26 Feb 2013 22:44:38 +0100
From: wmgcnfg at web.de
To: mkgmap-dev at lists.mkgmap.org.uk
Subject: [mkgmap-dev] [PATCH v1] Random changes in img file sizes since r2477

Thanks Gerd,
 
I overlooked the hashCode(). I have removed the hashCode() from the 
compare method.
Please test attached patch.
 
WanMil
 
> Hi WanMil,
>
> I think the problem is in CutPoint compareTo(). In some cases it uses
> hashCode()
> to decide which one is better, but hashCode() is not overwritten, so the
> result is
> undetermined.
>
> Gerd
>
>
> WanMil wrote
>>> WanMil wrote
>>>>>
>>>>> @WanMil: Is it possible to change that?
>>>>
>>>> I don't have a clue. As far as I can see the mp cut algorithm is
>>>> constant - same input should create the same output.
>>>>
>>>>>
>>>
>>> I did not debug yet, but I assume the HashMap outOfBboxPoints could be
>>> the
>>> cause.
>>> Maybe this must be an IdentityHashMap?
>>
>> This has not been changed since r1953 so it should not be the cause.
>>
>>> I'll try that tomorrow if you can't find anything else.
>>>
>>> Ciao
>>> Gerd
>>>
>>>
>>
>> _______________________________________________
>> mkgmap-dev mailing list
>
>> mkgmap-dev at .org
>
>> http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>
>
>
>
>
> --
> View this message in context: http://gis.19327.n5.nabble.com/Random-changes-in-img-file-sizes-since-r2477-tp5750746p5751003.html
> Sent from the Mkgmap Development mailing list archive at Nabble.com.
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
>
 

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://lists.mkgmap.org.uk/mailman/listinfo/mkgmap-dev 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20130226/9475e1f1/attachment.html 


More information about the mkgmap-dev mailing list