Toponaming: Check for selection mapped element name

This commit is contained in:
bgbsww
2024-06-22 12:49:47 -04:00
committed by Chris Hennes
parent a44f5e36fa
commit 4c3fc869fe
3 changed files with 30 additions and 7 deletions

View File

@@ -401,7 +401,8 @@ void SoFCUnifiedSelection::doAction(SoAction *action)
#ifdef FC_USE_TNP_FIX
std::pair<std::string, std::string> elementName;
App::GeoFeature::resolveElement(obj, subName, elementName);
if (!elementName.second.empty()) { // If we have a shortened element name
if (Data::isMappedElement(subName)
&& !elementName.second.empty()) { // If we have a shortened element name
subName = elementName.second.c_str(); // use it.
}
#endif