From fd549c764b28b2050873e7d60eba9613ccfd4b0f Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 16 Oct 2021 10:09:51 -0400 Subject: [PATCH] Task: Do not identify tag and dependency attributes as orphans --- src/Task.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Task.cpp b/src/Task.cpp index 17b36bb27..ef4ada05e 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -546,9 +546,11 @@ bool Task::is_udaPresent () const bool Task::is_orphanPresent () const { for (auto& att : data) - if (att.first.compare (0, 11, "annotation_", 11) != 0) - if (Context::getContext ().columns.find (att.first) == Context::getContext ().columns.end ()) - return true; + if (! isAnnotationAttr (att.first) && + ! isTagAttr (att.first) && + ! isDepAttr (att.first) && + Context::getContext ().columns.find (att.first) == Context::getContext ().columns.end ()) + return true; return false; }