1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Fixed GeoJSON waypoint properties parsing

This commit is contained in:
Martin Tůma 2023-02-15 01:40:28 +01:00
parent 211ff46487
commit 7febd2971e

View File

@ -83,7 +83,7 @@ static void setWaypointProperties(Waypoint &waypoint,
QColor color(0x7e, 0x7e, 0x7e); QColor color(0x7e, 0x7e, 0x7e);
int size = MARKER_SIZE_MEDIUM; int size = MARKER_SIZE_MEDIUM;
if (!properties.isObject()) { if (properties.isObject()) {
QJsonObject o(properties.toObject()); QJsonObject o(properties.toObject());
if (o["name"].isString()) if (o["name"].isString())