修正删除航线附属点不刷新问题bug

This commit is contained in:
2020-06-06 16:29:47 +08:00
parent 5740ba1ed4
commit 2d2192dcc4
+10 -1
View File
@@ -574,7 +574,7 @@ void OPMapWidget::WPInsert(const int &position)
foreach(QGraphicsItem * i, map->childItems()) {
WayPointItem *w = qgraphicsitem_cast<WayPointItem *>(i);
if (w) {
qDebug() << "all number" << w->Number() << w->snumber;
//qDebug() << "all number" << w->Number() << w->snumber;
WPFollowPrevious(w->FollowPrevious(),w);
@@ -702,6 +702,15 @@ void OPMapWidget::WPDelete(int number)
}
}
foreach(QGraphicsItem * i, map->childItems()) {
WayPointItem *w = qgraphicsitem_cast<WayPointItem *>(i);
if (w) {
WPFollowPrevious(w->FollowPrevious(),w);
}
}
}
WayPointItem *OPMapWidget::WPFind(int number)
{