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 773afb7 commit f086ed4
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.color) {
if (serializer.getName() == COLOR_NAME_EXTENSION && p.color == pointsGroup.color) {
extensions.remove(COLOR_NAME_EXTENSION)
}
if (serializer.getName() == ICON_NAME_EXTENSION && p.getIconName() == pointsGroup.iconName) {
if (serializer.getName() == ICON_NAME_EXTENSION && p.iconName == pointsGroup.iconName) {
extensions.remove(ICON_NAME_EXTENSION)
}
if (serializer.getName() == BACKGROUND_TYPE_EXTENSION && p.getBackgroundType() == pointsGroup.backgroundType) {
if (serializer.getName() == BACKGROUND_TYPE_EXTENSION && p.backgroundType == pointsGroup.backgroundType) {
extensions.remove(BACKGROUND_TYPE_EXTENSION)
}
}
Expand Down

0 comments on commit f086ed4

Please sign in to comment.