diff --git a/src/Task.cpp b/src/Task.cpp index 7c91ee0b3..767178303 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -1542,8 +1542,8 @@ std::vector Task::getUDAOrphanUUIDs () const { std::vector orphans; for (auto& it : data) - if (it.first.compare (0, 11, "annotation_", 11) != 0) - if (Context::getContext ().columns.find (it.first) == Context::getContext ().columns.end ()) + if (Context::getContext ().columns.find (it.first) == Context::getContext ().columns.end ()) + if (not (isAnnotationAttr (it.first) || isTagAttr (it.first) || isDepAttr (it.first))) orphans.push_back (it.first); return orphans;