fix small bug with magnifier display
This commit is contained in:
parent
ab578a454c
commit
44d26dd308
1 changed files with 4 additions and 2 deletions
|
@ -207,13 +207,15 @@ public class MapControlsLayer extends OsmandMapLayer {
|
|||
if (frac != 0) {
|
||||
if (frac > 0) {
|
||||
zoomText += "+";
|
||||
} else {
|
||||
zoomText += "-";
|
||||
}
|
||||
int ifrac = ((int) frac);
|
||||
int ifrac = ((int) Math.abs(frac));
|
||||
if (frac >= 1) {
|
||||
zoomText += ifrac;
|
||||
}
|
||||
if (frac != ifrac) {
|
||||
zoomText += "." + ((int) ((frac - ifrac) * 10f));
|
||||
zoomText += "." + ((int) ((Math.abs(frac) - ifrac) * 10f));
|
||||
}
|
||||
}
|
||||
float length = zoomTextPaint.measureText(zoomText);
|
||||
|
|
Loading…
Reference in a new issue