Toponaming: Don't add empty tags past the threshold

This commit is contained in:
drwho495
2025-08-25 16:28:19 -05:00
committed by Chris Hennes
parent 1310754381
commit 08cbc5cffa

View File

@@ -1192,7 +1192,7 @@ void ElementMap::addChildElements(long masterTag, const std::vector<MappedChildE
// do child mapping only if the child element count >= 5
const int threshold {5};
if (child.count >= threshold || !child.elementMap) {
if ((child.count >= threshold && child.tag != 0) || !child.elementMap) {
encodeElementName(child.indexedName[0],
tmp,
ss,