From 6004e92c5168111b41bbaae62cdc50af33a92341 Mon Sep 17 00:00:00 2001 From: PaulStets Date: Mon, 17 Sep 2018 13:06:06 +0300 Subject: [PATCH] Fixed #5998 --- .../controllers/RenderedObjectMenuController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/RenderedObjectMenuController.java b/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/RenderedObjectMenuController.java index f657a6f2fe..31fe449ccb 100644 --- a/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/RenderedObjectMenuController.java +++ b/OsmAnd/src/net/osmand/plus/mapcontextmenu/controllers/RenderedObjectMenuController.java @@ -119,10 +119,10 @@ public class RenderedObjectMenuController extends MenuController { (renderedObject.getId() % 2 == MapObject.AMENITY_ID_RIGHT_SHIFT || (renderedObject.getId() >> MapObject.NON_AMENITY_ID_RIGHT_SHIFT) < Integer.MAX_VALUE)) { String link; - if ((renderedObject.getId() >> 6) % 2 == MapObject.WAY_MODULO_REMAINDER) { - link = "https://www.openstreetmap.org/node/"; - } else { + if ((renderedObject.getId()) % 2 == MapObject.WAY_MODULO_REMAINDER) { link = "https://www.openstreetmap.org/way/"; + } else { + link = "https://www.openstreetmap.org/node/"; } addPlainMenuItem(R.drawable.ic_action_info_dark, null, link + (renderedObject.getId() >> MapObject.NON_AMENITY_ID_RIGHT_SHIFT), true, true, null); }