--- trunk/src/brains/MoleculeCreator.cpp 2005/01/25 17:45:23 273 +++ trunk/src/brains/MoleculeCreator.cpp 2005/03/08 21:06:49 403 @@ -253,8 +253,9 @@ RigidBody* MoleculeCreator::createRigidBody(MoleculeSt //The third part is the index of the rigidbody defined in meta-data file //For example, Butane_RB_0 is a valid rigid body name of butane molecule /**@todo replace itoa by lexi_cast */ - rb->setType(mol->getType() + "_RB_" + toString(mol->getNRigidBodies())); - + std::string s = OOPSE_itoa(mol->getNRigidBodies(), 10); + rb->setType(mol->getType() + "_RB_" + s.c_str()); + return rb; }