From 800e03de501a16f316fbd3061d6f74b1b3bf6d4d Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Fri, 17 Aug 2012 05:11:13 +0200 Subject: [PATCH] CHANGED: #1471 Squashed a bug that prevented many widgets from being serialized right. Therefore preventing correct display when loading the saved XML. --- code/nel/src/gui/interface_parser.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/code/nel/src/gui/interface_parser.cpp b/code/nel/src/gui/interface_parser.cpp index ff3b77352..608035771 100644 --- a/code/nel/src/gui/interface_parser.cpp +++ b/code/nel/src/gui/interface_parser.cpp @@ -1956,10 +1956,10 @@ namespace NLGUI // Clear all structures used only for init - NLMISC::contReset (_ParentPositionsMap); - NLMISC::contReset (_ParentSizesMap); - NLMISC::contReset (_ParentSizesMaxMap); - NLMISC::contReset (_LuaClassAssociation); + //NLMISC::contReset (_ParentPositionsMap); + //NLMISC::contReset (_ParentSizesMap); + //NLMISC::contReset (_ParentSizesMaxMap); + //NLMISC::contReset (_LuaClassAssociation); return true; } @@ -2553,6 +2553,10 @@ namespace NLGUI CWidgetManager::getInstance()->removeAllMasterGroups(); _StyleMap.clear(); _CtrlSheetSelection.deleteGroups(); + NLMISC::contReset (_ParentPositionsMap); + NLMISC::contReset (_ParentSizesMap); + NLMISC::contReset (_ParentSizesMaxMap); + NLMISC::contReset (_LuaClassAssociation); }