Skip to content

Commit

Permalink
Update GPXUtilities.java
Browse files Browse the repository at this point in the history
  • Loading branch information
sonora authored Sep 1, 2024
1 parent cf33e98 commit 84c43db
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions OsmAnd-java/src/main/java/net/osmand/gpx/GPXUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -1286,13 +1286,14 @@ private static void writeWpt(XmlSerializer serializer, WptPt p, IProgress progre
}
}
if (p.category != null && file.pointsGroups.get(p.category) != null) {
if (COLOR_NAME_EXTENSION.equals(serializer.getName()) && p.color.equals(pointsGroups.get(p.category).color)) {
PointsGroup pointsGroup = file.pointsGroups.get(categoryName);
if (COLOR_NAME_EXTENSION.equals(serializer.getName()) && p.getColor().equals(pointsGroup.color)) {
extensions.remove(COLOR_NAME_EXTENSION);
}
if (ICON_NAME_EXTENSION.equals(serializer.getName()) && p.icon.equals(pointsGroups.get(p.category).icon)) {
if (ICON_NAME_EXTENSION.equals(serializer.getName()) && p.getIconName().equals(pointsGroup.icon)) {
extensions.remove(ICON_NAME_EXTENSION);
}
if (BACKGROUND_TYPE_EXTENSION.equals(serializer.getName()) && p.background.equals(pointsGroups.get(p.category).background)) {
if (BACKGROUND_TYPE_EXTENSION.equals(serializer.getName()) && p.getNackgroundType().equals(pointsGroup.background)) {
extensions.remove(BACKGROUND_TYPE_EXTENSION);
}
}
Expand Down

0 comments on commit 84c43db

Please sign in to comment.