Fix #5785
This commit is contained in:
parent
a06e6ce1a9
commit
8383aedb64
1 changed files with 2 additions and 1 deletions
|
@ -333,7 +333,8 @@ public class RulerControlLayer extends OsmandMapLayer {
|
|||
}
|
||||
|
||||
private void updateData(RotatedTileBox tb, QuadPoint center) {
|
||||
if (tb.getPixHeight() > 0 && tb.getPixWidth() > 0 && maxRadiusInDp > 0) {
|
||||
if (tb.getPixHeight() > 0 && tb.getPixWidth() > 0 && maxRadiusInDp > 0
|
||||
&& !Double.isNaN(tb.getLatitude()) && !Double.isNaN(tb.getLongitude())) {
|
||||
if (cacheCenter.y != center.y || cacheCenter.x != center.x) {
|
||||
cacheCenter = center;
|
||||
updateCenter(tb, center);
|
||||
|
|
Loading…
Reference in a new issue