From 9a3a524a11108eaaeb38c7166750aa490f66d21f Mon Sep 17 00:00:00 2001 From: Jason Felds Date: Tue, 5 Apr 2011 01:21:54 -0400 Subject: [PATCH] [sm130labels] Consistency: no empty labels. --- src/ScreenEdit.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ScreenEdit.cpp b/src/ScreenEdit.cpp index c483ca0a7c..8b7671fba1 100644 --- a/src/ScreenEdit.cpp +++ b/src/ScreenEdit.cpp @@ -2669,9 +2669,12 @@ void ScreenEdit::HandleScreenMessage( const ScreenMessage SM ) else if ( SM == SM_BackFromLabelChange ) { RString sLabel = ScreenTextEntry::s_sLastAnswer; - sLabel.Replace("=", "_"); - sLabel.Replace(",", "_"); - m_pSong->m_Timing.SetLabelAtBeat( GAMESTATE->m_fSongBeat, sLabel ); + if ( sLabel.length() > 0 ) + { + sLabel.Replace("=", "_"); + sLabel.Replace(",", "_"); + m_pSong->m_Timing.SetLabelAtBeat( GAMESTATE->m_fSongBeat, sLabel ); + } SetDirty( true ); } else if ( SM == SM_BackFromWarpChange )