Skip to content

Commit

Permalink
Fix reading gpx color from db
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-osm committed Sep 24, 2024
1 parent 122bf18 commit e4ea6ed
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@ object GpxUtilities {
val gpxColor = GpxColor.getColorFromName(colorString)
if (gpxColor != null) {
return gpxColor.color
} else {
try {
return colorString.toInt()
} catch (_: NumberFormatException) {
}
}
}
}
Expand Down

0 comments on commit e4ea6ed

Please sign in to comment.