allow set TargetNumber in XML
This commit is contained in:
@@ -25,6 +25,10 @@ void RollingNumbers::LoadFromNode( const CString& sDir, const XNode* pNode )
|
||||
|
||||
pNode->GetAttrValue( "Format", m_sFormat );
|
||||
pNode->GetAttrValue( "ApproachSeconds", m_fApproachSeconds );
|
||||
|
||||
int iTargetNumber;
|
||||
if( pNode->GetAttrValue( "TargetNumber", iTargetNumber ) )
|
||||
SetTargetNumber( iTargetNumber );
|
||||
|
||||
UpdateText();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user