From 41b4fb8c9a74c2005d77e9c5e152c237ca34b03a Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 28 Mar 2021 12:27:23 +0200 Subject: [PATCH] Apply gdt parent entry gdf to children --- src/ObjCommon/Obj/Gdt/GdtStream.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ObjCommon/Obj/Gdt/GdtStream.cpp b/src/ObjCommon/Obj/Gdt/GdtStream.cpp index 871c1596..a5944726 100644 --- a/src/ObjCommon/Obj/Gdt/GdtStream.cpp +++ b/src/ObjCommon/Obj/Gdt/GdtStream.cpp @@ -231,6 +231,10 @@ bool GdtReader::Read(Gdt& gdt) PrintError("Could not find parent with name"); return false; } + auto* currentParentEntry = entry.m_parent; + while (currentParentEntry->m_parent) + currentParentEntry = currentParentEntry->m_parent; + entry.m_gdf_name = currentParentEntry->m_gdf_name; } else {