parent
a4df5612d9
commit
a0ec8ecb64
|
@ -172,7 +172,10 @@ bool SavePieceOptions::mergeWith(const QUndoCommand *command)
|
|||
const QVector<VPieceNode> nodes = m_newDet.GetPath().GetNodes();
|
||||
const QVector<VPieceNode> candidateNodes = candidate.GetPath().GetNodes();
|
||||
|
||||
SCASSERT(nodes.size() == candidateNodes.size())
|
||||
if (nodes.size() != candidateNodes.size())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
for (int i = 0; i < nodes.size(); ++i)
|
||||
{
|
||||
|
|
|
@ -143,7 +143,10 @@ bool SavePiecePathOptions::mergeWith(const QUndoCommand *command)
|
|||
const QVector<VPieceNode> nodes = m_newPath.GetNodes();
|
||||
const QVector<VPieceNode> candidateNodes = candidate.GetNodes();
|
||||
|
||||
SCASSERT(nodes.size() == candidateNodes.size())
|
||||
if (nodes.size() == candidateNodes.size())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
for (int i = 0; i < nodes.size(); ++i)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user