Commit 7a65e5f2 authored by Paolo Angelelli's avatar Paolo Angelelli
Browse files

Fix broken MapPolylineObjectQSG


Fixes missing data sync between MapPolylineObjectPrivateDefault m_path
and MapPolylineObjectPrivateQSG m_geoPath.

Change-Id: Ie9eaee0bd23795b3afa51ca2facbd11ce32c8a26
Fixes: QTBUG-73408
Reviewed-by: default avatarAlex Blasche <alexander.blasche@qt.io>
Showing with 3 additions and 1 deletion
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment