Skip to content

Commit

Permalink
fallback name for levels if actual name is empty string (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
kekesidavid authored Jan 17, 2025
1 parent ab86fa2 commit b947ce6
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,16 @@ std::string HostToSpeckleConverter::GetElementLevel(const std::string& elemId)
}
}

return floorName;
if (!floorName.empty())
{
return floorName;
}
else
{
std::ostringstream oss;
oss << floorInd << ". Story";
return oss.str();
}
}

#pragma warning(pop) // Restore the previous warning state

0 comments on commit b947ce6

Please sign in to comment.