Refactoring.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-05-07 14:35:01 +03:00
parent ccda742aa8
commit b42664ce80
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ void AddItemToGroup::performUndoRedo(bool isUndo)
// undo, it stays unvisible until the entire drawing is completly rerendered.
quint32 objectId = doc->GetParametrUInt(xml, QStringLiteral("object"), NULL_ID_STR);
quint32 toolId = doc->GetParametrUInt(xml, QStringLiteral("tool"), NULL_ID_STR);
VDataTool* tool = doc->getTool(toolId);
VDataTool* tool = VAbstractPattern::getTool(toolId);
tool->GroupVisibility(objectId,true);
}
else // is redo

View file

@ -90,7 +90,7 @@ void RemoveItemFromGroup::performUndoRedo(bool isUndo)
// undo, it stays unvisible until the entire drawing is completly rerendered.
quint32 objectId = doc->GetParametrUInt(xml, QStringLiteral("object"), NULL_ID_STR);
quint32 toolId = doc->GetParametrUInt(xml, QStringLiteral("tool"), NULL_ID_STR);
VDataTool* tool = doc->getTool(toolId);
VDataTool* tool = VAbstractPattern::getTool(toolId);
tool->GroupVisibility(objectId,true);
}