Improve validation custom seam allowance records.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-11-29 16:59:48 +02:00
parent a2518509a4
commit 3ee3fbd9cb

View file

@ -332,7 +332,11 @@ QVector<CustomSARecord> VPiece::GetValidRecords() const
{
const CustomSARecord &record = d->m_customSARecords.at(i);
if (record.startPoint > NULL_ID && record.path > NULL_ID && record.endPoint > NULL_ID)
if (record.startPoint > NULL_ID
&& record.path > NULL_ID
&& record.endPoint > NULL_ID
&& d->m_path.indexOfNode(record.startPoint) != -1
&& d->m_path.indexOfNode(record.endPoint) != -1)
{
records.append(record);
}