From acb3d45a0be33461d8b6e0a864912c34eed7e6ac Mon Sep 17 00:00:00 2001 From: dfighter1985 Date: Sat, 11 Aug 2012 19:39:48 +0200 Subject: [PATCH] CHANGED: #1471 Some type changes for serializing. --- code/nel/src/gui/ctrl_button.cpp | 3 +++ code/nel/src/gui/group_tab.cpp | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/code/nel/src/gui/ctrl_button.cpp b/code/nel/src/gui/ctrl_button.cpp index 57c505d87..50cbd1519 100644 --- a/code/nel/src/gui/ctrl_button.cpp +++ b/code/nel/src/gui/ctrl_button.cpp @@ -153,6 +153,9 @@ namespace NLGUI if( node == NULL ) return NULL; + if( xmlGetProp( node, BAD_CAST "type" ) == NULL ) + xmlSetProp( node, BAD_CAST "type", BAD_CAST "button" ); + xmlNewProp( node, BAD_CAST "tx_normal", BAD_CAST CViewRenderer::getInstance()->getTextureNameFromId( _TextureIdNormal ).c_str() ); diff --git a/code/nel/src/gui/group_tab.cpp b/code/nel/src/gui/group_tab.cpp index f2ca41885..fc2a57038 100644 --- a/code/nel/src/gui/group_tab.cpp +++ b/code/nel/src/gui/group_tab.cpp @@ -799,7 +799,7 @@ namespace NLGUI return NULL; if( xmlGetProp( node, BAD_CAST "type" ) == NULL ) - xmlSetProp( node, BAD_CAST "type", BAD_CAST "tab_button" ); + xmlSetProp( node, BAD_CAST "type", BAD_CAST "tab" ); xmlNewProp( node, BAD_CAST "group", BAD_CAST _AssociatedGroup.c_str() );