diff --git a/OsmAnd-shared/src/commonMain/kotlin/net/osmand/shared/gpx/GpxUtilities.kt b/OsmAnd-shared/src/commonMain/kotlin/net/osmand/shared/gpx/GpxUtilities.kt index 709d47dd872..15d9b94fb2b 100644 --- a/OsmAnd-shared/src/commonMain/kotlin/net/osmand/shared/gpx/GpxUtilities.kt +++ b/OsmAnd-shared/src/commonMain/kotlin/net/osmand/shared/gpx/GpxUtilities.kt @@ -178,6 +178,11 @@ object GpxUtilities { val gpxColor = GpxColor.getColorFromName(colorString) if (gpxColor != null) { return gpxColor.color + } else { + try { + return colorString.toInt() + } catch (_: NumberFormatException) { + } } } }