Skip to content

Commit

Permalink
Update GpxUtilities.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
sonora authored Sep 1, 2024
1 parent 4c7bec3 commit 773afb7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -714,13 +714,13 @@ object GpxUtilities {
}
if (p.category != null && file.pointsGroups[p.category] != null) {
val pointsGroup = file.pointsGroups[p.category]!!
if (serializer.getName() == COLOR_NAME_EXTENSION && p.getColor() == pointsGroup.getColor()) {
if (serializer.getName() == COLOR_NAME_EXTENSION && p.getColor() == pointsGroup.color) {
extensions.remove(COLOR_NAME_EXTENSION)
}
if (serializer.getName() == ICON_NAME_EXTENSION && p.getIconName() == pointsGroup.getIconName()) {
if (serializer.getName() == ICON_NAME_EXTENSION && p.getIconName() == pointsGroup.iconName) {
extensions.remove(ICON_NAME_EXTENSION)
}
if (serializer.getName() == BACKGROUND_TYPE_EXTENSION && p.getBackgroundType() == pointsGroup.getBackgroundType()) {
if (serializer.getName() == BACKGROUND_TYPE_EXTENSION && p.getBackgroundType() == pointsGroup.backgroundType) {
extensions.remove(BACKGROUND_TYPE_EXTENSION)
}
}
Expand Down

0 comments on commit 773afb7

Please sign in to comment.