Fixed bug with not unique id if Group is the last object that was created in
file. Reparsing did not update max available id in file. This cause creating duplicate ids. --HG-- branch : develop
This commit is contained in:
parent
2bdd0258a5
commit
a0585a4c2b
|
@ -317,6 +317,8 @@ void VAbstractPattern::ParseGroups(const QDomElement &domElement)
|
||||||
{
|
{
|
||||||
if (domElement.tagName() == TagGroup)
|
if (domElement.tagName() == TagGroup)
|
||||||
{
|
{
|
||||||
|
VContainer::UpdateId(GetParametrUInt(domElement, AttrId, NULL_ID_STR));
|
||||||
|
|
||||||
const QPair<bool, QMap<quint32, quint32> > groupData = ParseItemElement(domElement);
|
const QPair<bool, QMap<quint32, quint32> > groupData = ParseItemElement(domElement);
|
||||||
const QMap<quint32, quint32> group = groupData.second;
|
const QMap<quint32, quint32> group = groupData.second;
|
||||||
auto i = group.constBegin();
|
auto i = group.constBegin();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user