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

@@ -117,7 +117,8 @@ void View3DInventorSelection::checkGroupOnTop(const SelectionChanges &Reason)
#ifdef FC_USE_TNP_FIX
std::pair<std::string, std::string> element;
App::GeoFeature::resolveElement(obj, Reason.pSubName, element);
if (!element.second.empty()) { // If we have a shortened element name
if (Data::isMappedElement(subname)
&& !element.second.empty()) { // If we have a shortened element name
subname = element.second.c_str(); // use if
}
#endif