more tolerant parsing

This commit is contained in:
Glenn Maynard
2008-01-10 20:35:17 +00:00
parent dc9084b1bb
commit a426b97bea
+2
View File
@@ -505,7 +505,9 @@ void Font::LoadFontPageSettings( FontPageSettings &cfg, IniFile &ini, const RStr
* This lets us assign characters very compactly and readably. */
RString sRowStr = sName.substr(5);
TrimLeft( sRowStr );
ASSERT( IsAnInt(sRowStr) );
const int iRow = atoi( sRowStr.c_str() );
const int iFirstFrame = iRow * iNumFramesWide;