This commit is contained in:
Chumva 2019-07-19 09:59:19 +03:00
parent c4a4446d05
commit 1d241433c2

View file

@ -450,7 +450,6 @@ public class RulerControlLayer extends OsmandMapLayer {
cacheTileX = tb.getCenterTileX();
cacheTileY = tb.getCenterTileY();
cacheMapDensity = mapDensity.get();
cacheDistances.clear();
updateDistance(tb);
}
}
@ -484,6 +483,7 @@ public class RulerControlLayer extends OsmandMapLayer {
}
private void updateText() {
cacheDistances.clear();
double maxCircleRadius = maxRadius;
int i = 1;
while ((maxCircleRadius -= radius) > 0) {