]> OCCT Git - occt.git/commit
Application Framework - Early-return null NamedShape when TNaming_UsedShapes is missi...
authorPasukhin Dmitry <dpasukhi@opencascade.com>
Fri, 24 Oct 2025 08:11:48 +0000 (09:11 +0100)
committerGitHub <noreply@github.com>
Fri, 24 Oct 2025 08:11:48 +0000 (09:11 +0100)
commit7d89343b9b2fc12c78fdde95171629dab0b194cd
tree503f7f09b2363d0a88c20b6434c618d7e5198185
parentc57f5e764705b3eed745c03cb8c870f0d3522b38
Application Framework - Early-return null NamedShape when TNaming_UsedShapes is missing (#760)

Check Acces.Root().FindAttribute(...) result in TNaming_Tool::NamedShape and return an empty Handle
if the TNaming_UsedShapes attribute is not found to avoid using an uninitialized map.
src/ApplicationFramework/TKCAF/GTests/FILES.cmake
src/ApplicationFramework/TKCAF/GTests/TNaming_Tool_Test.cxx [new file with mode: 0644]
src/ApplicationFramework/TKCAF/TNaming/TNaming_NamedShape.cxx