MapElement: fix clear() method, #735

This commit is contained in:
Emux
2019-07-31 13:34:01 +03:00
parent 72ba3d6429
commit 4be42dbc0f
2 changed files with 2 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
* Copyright 2012 Hannes Janetzek * Copyright 2012 Hannes Janetzek
* Copyright 2016 Andrey Novikov * Copyright 2016 Andrey Novikov
* Copyright 2017-2019 Gustl22 * Copyright 2017-2019 Gustl22
* Copyright 2018 devemux86 * Copyright 2018-2019 devemux86
* *
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org). * This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
* *
@@ -114,6 +114,7 @@ public class MapElement extends GeometryBuffer {
@Override @Override
public MapElement clear() { public MapElement clear() {
labelPosition = null;
layer = 5; layer = 5;
super.clear(); super.clear();
return this; return this;

View File

@@ -963,8 +963,6 @@ public class MapDatabase implements ITileDataSource {
if (labelPosition != null && wayDataBlock == 0) if (labelPosition != null && wayDataBlock == 0)
e.setLabelPosition(e.points[0] + labelPosition[0], e.points[1] + labelPosition[1]); e.setLabelPosition(e.points[0] + labelPosition[0], e.points[1] + labelPosition[1]);
else
e.labelPosition = null;
mTileProjection.project(e); mTileProjection.project(e);