Skip to content

Commit 8e59d96

Browse files
committed
fix color of line
1 parent 6f95685 commit 8e59d96

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/com/hydrologis/smash/import_export_plugins/utils/gpx_kml_utilities.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ class KmlExporter {
230230
// int parsedColor = ColorUtilities.toColor(color);
231231
LogProperty? logProperties = db.getLogProperties(log.id!);
232232
String hexColor = logProperties!.color ?? "#FF0000";
233+
234+
// remove colortables
235+
hexColor = "FF" + hexColor.split("@")[0].substring(1);
236+
233237
sB += "<color>${hexColor}</color>\n";
234238
sB += "<width>${logProperties.width}</width>\n";
235239
sB += "</LineStyle>\n";

0 commit comments

Comments
 (0)