﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
3665	Showing waypoints with name and note/comment	mmehl	team	"While mapping I sometimes create a waypoint and add a note/comment to this way point.
It would be nice to see the name and the note/comment when loading the waypoints into JOSM.

The patch below, adds the note/comment, if a comment is available.

Index: src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java
===================================================================
--- src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java	(revision 2252)
+++ src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java	(working copy)
@@ -117,6 +117,10 @@
                 String name_desc = """";
                 if (wpt.attr.containsKey(""name"")) {
                     name_desc = wpt.getString(""name"");
+                    if (wpt.attr.containsKey(""desc"")) {
+                        name_desc+="", "";
+                        name_desc+=wpt.getString(""desc"");
+                    }
                 } else if (wpt.attr.containsKey(""desc"")) {
                     name_desc = wpt.getString(""desc"");
                 }
"	enhancement	closed	normal		Core		fixed	waypoints	michael.mehl@…
