Fixed issue #955. Valentina corrupts file.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2019-03-04 14:40:58 +02:00
parent 9a4e8e2bc5
commit 7cf25f1925
2 changed files with 7 additions and 8 deletions

View File

@ -15,6 +15,7 @@
- [#937] Wrong symmetrical seam corners on pieces. - [#937] Wrong symmetrical seam corners on pieces.
- [#942] Save Layout mode ignores paper format for tiled PDF. - [#942] Save Layout mode ignores paper format for tiled PDF.
- [#954] Valentina produces empty rotation operation. - [#954] Valentina produces empty rotation operation.
- [#955] Valentina corrupts file.
# Version 0.6.1 October 23, 2018 # Version 0.6.1 October 23, 2018
- [#885] Regression. Broken support for multi size measurements. - [#885] Regression. Broken support for multi size measurements.

View File

@ -147,10 +147,9 @@ void VToolPiecePath::incrementReferens()
{ {
doc->IncrementReferens(idTool); doc->IncrementReferens(idTool);
} }
else
{ IncrementNodes(VAbstractTool::data.GetPiecePath(m_id));
IncrementNodes(VAbstractTool::data.GetPiecePath(m_id));
}
ShowNode(); ShowNode();
QDomElement domElement = doc->elementById(m_id, getTagName()); QDomElement domElement = doc->elementById(m_id, getTagName());
if (domElement.isElement()) if (domElement.isElement())
@ -170,10 +169,9 @@ void VToolPiecePath::decrementReferens()
{ {
doc->DecrementReferens(idTool); doc->DecrementReferens(idTool);
} }
else
{ DecrementNodes(VAbstractTool::data.GetPiecePath(m_id));
DecrementNodes(VAbstractTool::data.GetPiecePath(m_id));
}
HideNode(); HideNode();
QDomElement domElement = doc->elementById(m_id, getTagName()); QDomElement domElement = doc->elementById(m_id, getTagName());
if (domElement.isElement()) if (domElement.isElement())