1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/audio/soundtracker/files/patch-app__sample-editor.c
Sergey Matveychuk 9a3ab27e4f - Update to 0.6.8
PR:		ports/94490
Submitted by:	KATO Tsuguru
2006-05-03 06:44:48 +00:00

22 lines
645 B
C

--- app/sample-editor.c.orig Sat Feb 25 21:26:05 2006
+++ app/sample-editor.c Sun Feb 26 13:05:51 2006
@@ -2647,13 +2647,15 @@
static void
sample_editor_crop()
{
- int start = sampledisplay->sel_start, end = sampledisplay->sel_end;
+ int start, end, l;
+
+ start = sampledisplay->sel_start, end = sampledisplay->sel_end;
if(current_sample == NULL || start == -1)
return;
-
- int l = current_sample->sample.length;
+ l = current_sample->sample.length;
+
sample_editor_lock_sample();
sample_editor_delete(current_sample, 0, start);
sample_editor_delete(current_sample, end - start, l - start);