From f7736d3bfd3dbf1fc53748eb97616aa917253003 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 24 May 2016 20:35:19 +0300 Subject: [PATCH] Fixed issue "Not all length of curves visible". --HG-- branch : develop --- src/libs/vpatterndb/variables/vcurvevariable.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libs/vpatterndb/variables/vcurvevariable.cpp b/src/libs/vpatterndb/variables/vcurvevariable.cpp index db118bdea..904a56976 100644 --- a/src/libs/vpatterndb/variables/vcurvevariable.cpp +++ b/src/libs/vpatterndb/variables/vcurvevariable.cpp @@ -68,6 +68,11 @@ VCurveVariable::~VCurveVariable() //--------------------------------------------------------------------------------------------------------------------- bool VCurveVariable::Filter(quint32 id) { + if (id == NULL_ID) + { + return false; + } + if (d->parentId != NULL_ID)//Do not check if value zero {// Not all curves have parents. Only those who was created after cutting the parent curve. return d->id == id || d->parentId == id;