only one of sPath and sFullTitle may be set
This commit is contained in:
@@ -389,8 +389,10 @@ XNode* CourseID::CreateNode() const
|
|||||||
void CourseID::LoadFromNode( const XNode* pNode )
|
void CourseID::LoadFromNode( const XNode* pNode )
|
||||||
{
|
{
|
||||||
ASSERT( pNode->GetName() == "Course" );
|
ASSERT( pNode->GetName() == "Course" );
|
||||||
pNode->GetAttrValue("Path", sPath);
|
sFullTitle = RString();
|
||||||
pNode->GetAttrValue("FullTitle", sFullTitle);
|
sPath = RString();
|
||||||
|
if( !pNode->GetAttrValue("Path", sPath) )
|
||||||
|
pNode->GetAttrValue( "FullTitle", sFullTitle );
|
||||||
}
|
}
|
||||||
|
|
||||||
RString CourseID::ToString() const
|
RString CourseID::ToString() const
|
||||||
|
|||||||
Reference in New Issue
Block a user