From a986293f20fba8cf3a649c0ed308ac8d568ba9fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 9 Dec 2019 22:50:19 +0100 Subject: [PATCH] Properly handle points with extended style IDs --- src/map/IMG/style.cpp | 2 +- src/map/IMG/style.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/IMG/style.cpp b/src/map/IMG/style.cpp index 4720e1a5..0be0694a 100644 --- a/src/map/IMG/style.cpp +++ b/src/map/IMG/style.cpp @@ -966,7 +966,7 @@ const Style::Point &Style::point(quint32 type) const { static Point null; - QMap::const_iterator it = _points.find(type); + QMap::const_iterator it = _points.find(type); return (it == _points.constEnd()) ? null : *it; } diff --git a/src/map/IMG/style.h b/src/map/IMG/style.h index 81eeb0b8..68f3eacc 100644 --- a/src/map/IMG/style.h +++ b/src/map/IMG/style.h @@ -142,7 +142,7 @@ private: QMap _lines; QMap _polygons; - QMap _points; + QMap _points; QList _drawOrder; };