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() );