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;