clamp description length when setting, not just on load

This commit is contained in:
Chris Danford
2005-03-05 22:16:19 +00:00
parent b60d135493
commit a73e8948e7
3 changed files with 8 additions and 7 deletions
+2 -2
View File
@@ -280,8 +280,8 @@ void EditMenu::OnRowValueChanged( Row row )
{
CString s = DifficultyToThemedString(GetSelectedDifficulty());
Steps *pSteps = GetSelectedSteps();
if( GetSelectedDifficulty() == DIFFICULTY_EDIT )
s += " - " + (pSteps ? pSteps->GetDescription() : "New" );
if( pSteps && GetSelectedDifficulty() == DIFFICULTY_EDIT )
s += " - " pSteps->GetDescription();
m_textValue[ROW_STEPS].SetText( s );
m_Meter.SetFromSteps( GetSelectedSteps() );
}