Fix id
This commit is contained in:
parent
db4c59f84a
commit
7c00bcbcf2
2 changed files with 3 additions and 3 deletions
|
@ -473,7 +473,7 @@ public class AmenityMenuBuilder extends MenuBuilder {
|
|||
boolean osmEditingEnabled = OsmandPlugin.getEnabledPlugin(OsmEditingPlugin.class) != null;
|
||||
if (osmEditingEnabled && amenity.getId() != null
|
||||
&& amenity.getId() > 0 &&
|
||||
(amenity.getId() % 2 == 1 || (amenity.getId() >> 1) < Integer.MAX_VALUE)) {
|
||||
(amenity.getId() % 2 == 0 || (amenity.getId() >> 1) < Integer.MAX_VALUE)) {
|
||||
String link;
|
||||
if (amenity.getId() % 2 == 0) {
|
||||
link = "http://www.openstreetmap.org/node/";
|
||||
|
|
|
@ -86,9 +86,9 @@ public class RenderedObjectMenuController extends MenuController {
|
|||
boolean osmEditingEnabled = OsmandPlugin.getEnabledPlugin(OsmEditingPlugin.class) != null;
|
||||
if (osmEditingEnabled && renderedObject.getId() != null
|
||||
&& renderedObject.getId() > 0 &&
|
||||
(renderedObject.getId() % 2 == 0 || (renderedObject.getId() >> 7) < Integer.MAX_VALUE)) {
|
||||
(renderedObject.getId() % 2 == 1 || (renderedObject.getId() >> 7) < Integer.MAX_VALUE)) {
|
||||
String link;
|
||||
if ((renderedObject.getId() >> 6) % 2 != 0) {
|
||||
if ((renderedObject.getId() >> 6) % 2 == 1) {
|
||||
link = "http://www.openstreetmap.org/node/";
|
||||
} else {
|
||||
link = "http://www.openstreetmap.org/way/";
|
||||
|
|
Loading…
Reference in a new issue