From: Alan N. <ala...@us...> - 2008-12-10 19:27:09
|
Update of /cvsroot/vapor/vapor/lib/params In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv25694/lib/params Modified Files: animationparams.cpp Log Message: Fixes for bugs 2412735 2412465 and 2231137 Index: animationparams.cpp =================================================================== RCS file: /cvsroot/vapor/vapor/lib/params/animationparams.cpp,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** animationparams.cpp 23 May 2008 16:46:34 -0000 1.13 --- animationparams.cpp 10 Dec 2008 19:27:03 -0000 1.14 *************** *** 259,262 **** --- 259,263 ---- else if (StrCmpNoCase(attribName, _maxRateAttr) == 0) { ist >> maxFrameRate; + if (maxFrameRate <= 0.f) maxFrameRate = 0.001f; } else if (StrCmpNoCase(attribName, _maxWaitAttr) == 0) { *************** *** 329,333 **** oss.str(empty); ! oss << (long)maxFrameRate; attrs[_maxRateAttr] = oss.str(); --- 330,334 ---- oss.str(empty); ! oss << (double)maxFrameRate; attrs[_maxRateAttr] = oss.str(); |