Added proper catch of Paul de Repentinguy name

This commit is contained in:
Robert Osfield 2005-12-15 20:56:06 +00:00
parent fcff441d5f
commit 101e5fac53
2 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,6 @@
OpenSceneGraph Library 1.0
171 Contributors:
172 Contributors:
Firstname Surname
-----------------
@ -118,6 +118,8 @@ Sebastien Kuntz
Ronny Krueger
Reinhard Sainitzer
Qing Shen
Paul de Repentinguy
Paul Fredrikson
Nikolov Trajce
Nicolas Brodu
Nathan Monteleone

View File

@ -25,6 +25,9 @@ NamePair NameDonBurns("Don","Burns");
bool validName(const std::string& first)
{
if (first=="de") return true;
if (first.empty()) return false;
if (first[0]<'A' || first[0]>'Z') return false;
@ -247,6 +250,11 @@ void nameCorrection(NamePair& name)
name.first = "Chris";
name.second = "Hanson";
}
if (name.first=="Paul" && name.second=="de")
{
name.first = "Paul";
name.second = "de Repentinguy";
}
if (name.first=="Nick" && name.second=="")
{
name.first = "Trajce";