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