summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/location/labs/qsg/qmappolylineobjectqsg.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/location/labs/qsg/qmappolylineobjectqsg.cpp b/src/location/labs/qsg/qmappolylineobjectqsg.cpp
index 66656b23..2bf5b287 100644
--- a/src/location/labs/qsg/qmappolylineobjectqsg.cpp
+++ b/src/location/labs/qsg/qmappolylineobjectqsg.cpp
@@ -53,7 +53,8 @@ QMapPolylineObjectPrivateQSG::QMapPolylineObjectPrivateQSG(QGeoMapObject *q)
QMapPolylineObjectPrivateQSG::QMapPolylineObjectPrivateQSG(const QMapPolylineObjectPrivate &other)
: QMapPolylineObjectPrivateDefault(other)
{
- // Data already cloned by the *Default copy constructor, but necessary
+ m_geoPath.setPath(m_path);
+ // rest of the data already cloned by the *Default copy constructor, but necessary
// update operations triggered only by setters overrides
updateGeometry();
if (m_map)
@@ -135,6 +136,7 @@ QList<QGeoCoordinate> QMapPolylineObjectPrivateQSG::path() const
void QMapPolylineObjectPrivateQSG::setPath(const QList<QGeoCoordinate> &path)
{
+ m_path = path;
m_geoPath.setPath(path);
updateGeometry();
if (m_map)