This repository has been archived on 2026-01-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
aldrin/aldrin-65a8db7be79e.diff
Orcan Ogetbil 9e7a1bfd08 - Change device order in autodetect. Prevents a possible crash.
- Fix segfault in waveedit when deleting end of waveform.
- Comply with new python guidelines
2010-05-30 15:49:45 +00:00

20 lines
767 B
Diff

# HG changeset patch -- Bitbucket.org
# Project Aldrin
# URL http://bitbucket.org/paniq/aldrin/overview
# User jmmcd
# Date 1238628185 -3600
# Node ID 65a8db7be79e5a55343fff33e0234702a2c04416
# Parent 66f9f971fdf278d83f620cea4a7de3585d1d1c31
Fix segfault in waveedit when deleting end of waveform. Fixes #16 on bitbucket. Thanks to bucket_brigade for the fix.
--- a/src/aldrin/waveedit.py
+++ b/src/aldrin/waveedit.py
@@ -115,7 +115,7 @@ class WaveEditView(gtk.DrawingArea):
player = com.get('aldrin.core.player')
if self.selection:
begin,end = self.selection
- self.level.remove_sample_range(begin,end)
+ self.level.remove_sample_range(begin,end-1)
self.selection = None
player.history_commit("remove sample range")
self.sample_changed()