From f46e21ed722193d74f56b2aa275a5cdc5e40b72b Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Mon, 30 Dec 2024 16:07:04 +0100 Subject: [PATCH] issue #11299 Regression with HTML_DYNAMIC_MENUS = NO, DISABLE_INDEX = NO, and custom LAYOUT_FILE --- src/layout.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/layout.h b/src/layout.h index fc7917291b..247c24eb9c 100644 --- a/src/layout.h +++ b/src/layout.h @@ -232,6 +232,11 @@ struct LayoutNavEntry std::swap(m_title,other.m_title); std::swap(m_intro,other.m_intro); std::swap(m_children,other.m_children); + // reparent children + for (auto &child : m_children) + { + child->m_parent = this; + } } private: