Round the ruler from 1 (not 5)

This commit is contained in:
Pavol Zibrita 2011-07-25 10:57:18 +02:00
parent c42ce307de
commit 50e6eb83cd

View file

@ -29,8 +29,8 @@ public class OsmAndFormatter {
}
// 1, 2, 5, 10, 20, 50, 100, 200, 500, 1000 ...
int generator = 5;
byte pointer = 0;
int generator = 1;
byte pointer = 1;
double point = mainUnitInMeter;
while(distInMeters * point > generator){
if (pointer++ % 3 == 2) {