From: John D. <go...@us...> - 2003-09-06 17:29:27
|
Log Message: ----------- Allows "ID" attribute to be lower case just like all the other attributes, and also because Legiondel_Superman can't seem to get it right. Modified Files: -------------- /cvsroot/decaldev/source/Inject: View.cpp Revision Data ------------- Index: View.cpp =================================================================== RCS file: /cvsroot/decaldev/source/Inject/View.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -u -d -r1.17 -r1.18 --- View.cpp 18 Mar 2003 06:53:33 -0000 1.17 +++ View.cpp 6 Sep 2003 17:28:54 -0000 1.18 @@ -230,6 +230,11 @@ vHeight = pElement->getAttribute( _T( "height" ) ), vUnclipped = pElement->getAttribute( _T( "unclipped" ) ), vID = pElement->getAttribute( _T( "ID" ) ); + // check for lower case, since all other attributes are lower case. And + // Legiondale_Superman can't seem to get it right... + if (vID.intVal == 0) { + vID = pElement->getAttribute( _T( "id" ) ); + } long nRealID = ( vID.vt == VT_NULL ) ? nID : static_cast< long >( vID ); *pAssignedID = nRealID; |