Skip to content

Commit

Permalink
Sampler "volume normalize" single-selection fix
Browse files Browse the repository at this point in the history
  • Loading branch information
8bitbubsy committed Jun 8, 2023
1 parent ba9a38b commit 4779a03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pt2_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -1286,7 +1286,8 @@ static void handleSamplerVolumeBox(void)
}

int8_t *sampleData = &song->sampleData[s->offset];
if (editor.markStartOfs != -1)

if (editor.markStartOfs != -1 && editor.markEndOfs != editor.markStartOfs)
{
sampleData += editor.markStartOfs;
sampleLength = editor.markEndOfs - editor.markStartOfs;
Expand Down

0 comments on commit 4779a03

Please sign in to comment.