Update of /cvsroot/gcblue/gcb_wx/src/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28131/src/common
Modified Files:
tinyxml.cpp
Log Message:
Index: tinyxml.cpp
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/src/common/tinyxml.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** tinyxml.cpp 24 Mar 2004 21:09:28 -0000 1.1
--- tinyxml.cpp 25 Mar 2004 01:33:39 -0000 1.2
***************
*** 535,538 ****
--- 535,549 ----
}
+ /**
+ * ALTERED code
+ * This code was added to set floating point attributes
+ */
+ void TiXmlElement::SetAttribute( const char * name, float value )
+ {
+ char buf[64];
+ sprintf( buf, "%f", value );
+ SetAttribute( name, buf );
+ }
+
void TiXmlElement::SetAttribute( const char * name, const char * _value )
|