From 753dfec5db462e41653cd0ad95f169b96d70699c Mon Sep 17 00:00:00 2001 From: Michael Votaw Date: Mon, 24 Mar 2025 19:42:56 -0500 Subject: [PATCH] Always generate smNoteData from parsed data, to ensure consistent string representation of stepchart --- src/Steps.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Steps.cpp b/src/Steps.cpp index 9c7fed003e..20f59c7c17 100644 --- a/src/Steps.cpp +++ b/src/Steps.cpp @@ -841,10 +841,14 @@ RString Steps::MinimizedChartString() // 0000 // StepMania will always generate the former since quarter notes are // the smallest quantization. - - RString smNoteData = ""; - this->GetSMNoteData(smNoteData); + // Instead of calling GetSMNoteData(), call NoteDataUtil::GetSMNoteDataString() + // to ensure that we have a consistent, valid stepchart representation. + RString smNoteData = ""; + NoteData noteData; + this->GetNoteData(noteData); + NoteDataUtil::GetSMNoteDataString( noteData, smNoteData ); + if( smNoteData == "") { return "";