提交 de74f6b9 编写于 作者: 丁劲犇's avatar 丁劲犇 💬

Bug fix

Deleted items still exists in selection set.
上级 8cf6dbdf
...@@ -864,6 +864,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_delete_marks (const QMap<QSt ...@@ -864,6 +864,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_delete_marks (const QMap<QSt
ct = 0; ct = 0;
foreach (QString key,set_names) foreach (QString key,set_names)
{ {
m_set_itemNameSelected.remove(key);
QString keystr = QString("name%1").arg(ct++); QString keystr = QString("name%1").arg(ct++);
QTVP_GEOMARKER::geoItemBase * base = m_pScene->geoitem_by_name(key); QTVP_GEOMARKER::geoItemBase * base = m_pScene->geoitem_by_name(key);
if (base) if (base)
...@@ -883,6 +884,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_delete_marks (const QMap<QSt ...@@ -883,6 +884,7 @@ QMap<QString, QVariant> qtvplugin_geomarker::func_delete_marks (const QMap<QSt
m_pScene->removeItem(key,0); m_pScene->removeItem(key,0);
res["ALL"] = 1; res["ALL"] = 1;
needUpdate = true; needUpdate = true;
m_set_itemNameSelected.clear();
scheduleRefreshMarks(); scheduleRefreshMarks();
} }
if (needUpdate) if (needUpdate)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册