Make SetText() behave like the docs say.

This commit is contained in:
Uli Kusterer 2014-01-21 01:36:16 +01:00
parent 85fff5e50a
commit 869bb599c1
1 changed files with 1 additions and 1 deletions

View File

@ -1262,7 +1262,7 @@ const char* XMLElement::GetText() const
void XMLElement::SetText( const char* inText )
{
if ( FirstChild() )
if ( FirstChild() && FirstChild()->ToText() )
FirstChild()->SetValue( inText );
else {
XMLText* theText = GetDocument()->NewText( inText );