Do not add a value if edit text is empty

This commit is contained in:
Daniel Collin 2013-01-12 23:22:38 +01:00
parent 3020995d62
commit 1d0c7deac4

View File

@ -634,6 +634,9 @@ static void endEditing()
track = getTracks()[active_track];
if (strcmp(s_editBuffer, ""))
{
key.row = row_pos;
key.value = (float)atof(s_editBuffer);
key.type = 0;
@ -651,6 +654,7 @@ static void endEditing()
Commands_addOrUpdateKey(active_track, &key);
updateNeedsSaving();
}
is_editing = false;
s_editorData.trackData.editText = 0;