only one of sPath and sFullTitle may be set

This commit is contained in:
Glenn Maynard
2006-10-17 09:02:13 +00:00
parent b30163e157
commit d8a75ce90e
+3 -1
View File
@@ -389,7 +389,9 @@ XNode* CourseID::CreateNode() const
void CourseID::LoadFromNode( const XNode* pNode )
{
ASSERT( pNode->GetName() == "Course" );
pNode->GetAttrValue("Path", sPath);
sFullTitle = RString();
sPath = RString();
if( !pNode->GetAttrValue("Path", sPath) )
pNode->GetAttrValue( "FullTitle", sFullTitle );
}