Fixed issue #955. Valentina corrupts file.

(grafted from 8e9fc213aa8018ebcf889cc9baa3f08a31b4e423)

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-03-04 14:40:58 +02:00
parent 33d83cedea
commit 504e617686
2 changed files with 7 additions and 8 deletions

View File

@ -29,6 +29,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())