From 140841f65cbdeb2974bc137e20f00311f7d4c299 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Fri, 15 Aug 2025 07:45:16 +0300 Subject: [PATCH] refresh root document indices on GUI::add --- src/graphics/ui/GUI.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graphics/ui/GUI.cpp b/src/graphics/ui/GUI.cpp index 79e9fd63..3ab438b1 100644 --- a/src/graphics/ui/GUI.cpp +++ b/src/graphics/ui/GUI.cpp @@ -302,6 +302,7 @@ bool GUI::isFocusCaught() const { } void GUI::add(std::shared_ptr node) { + UINode::getIndices(node, rootDocument->getMapWriteable()); container->add(std::move(node)); }