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
+4 -2
View File
@@ -389,8 +389,10 @@ XNode* CourseID::CreateNode() const
void CourseID::LoadFromNode( const XNode* pNode )
{
ASSERT( pNode->GetName() == "Course" );
pNode->GetAttrValue("Path", sPath);
pNode->GetAttrValue("FullTitle", sFullTitle);
sFullTitle = RString();
sPath = RString();
if( !pNode->GetAttrValue("Path", sPath) )
pNode->GetAttrValue( "FullTitle", sFullTitle );
}
RString CourseID::ToString() const