Task: Make sure tag and dependency attributes are not identified as orphan UDAs

This commit is contained in:
Tomas Babej 2021-09-04 10:55:16 -04:00
parent 309e99d49e
commit 2bd0d8ebd3

View file

@ -1542,8 +1542,8 @@ std::vector <std::string> Task::getUDAOrphanUUIDs () const
{
std::vector <std::string> 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 (not (isAnnotationAttr (it.first) || isTagAttr (it.first) || isDepAttr (it.first)))
orphans.push_back (it.first);
return orphans;