more of the same

This commit is contained in:
Glenn Maynard
2002-11-16 08:54:15 +00:00
parent e587b3a012
commit 397bd8b734
4 changed files with 8 additions and 6 deletions
+3 -2
View File
@@ -53,11 +53,12 @@ void FootMeter::SetFromNotes( Notes* pNotes )
void FootMeter::SetNumFeet( int iNumFeet )
{
CString sNewText;
for( int f=0; f<NUM_FEET_IN_METER; f++ )
int f;
for( f=0; f<NUM_FEET_IN_METER; f++ )
sNewText += (f<iNumFeet) ? "1" : "0";
for( f=NUM_FEET_IN_METER; f<=13; f++ )
if( f<iNumFeet )
sNewText += "1";
SetText( sNewText );
}
}