Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Edit
diff options
context:
space:
mode:
authorOli <olivier.belanger@umontreal.ca>2007-08-21 20:14:12 (GMT)
committer Oli <olivier.belanger@umontreal.ca>2007-08-21 20:14:12 (GMT)
commit2b696a87b0dc0dba43701b7c78ab4a70b01beb8a (patch)
tree346c9893c4b8cb057e9e3dd11c7213310e28c9d2 /Edit
parentfb054ca4ca1e4e9a84b50fa230538a0ccaa7d0fa (diff)
fix for painting
Diffstat (limited to 'Edit')
-rw-r--r--Edit/TrackInterface.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Edit/TrackInterface.py b/Edit/TrackInterface.py
index 45519de..db39f70 100644
--- a/Edit/TrackInterface.py
+++ b/Edit/TrackInterface.py
@@ -486,6 +486,8 @@ class TrackInterface( gtk.EventBox ):
for n in noteS:
if n.cs.onset >= onset and n.cs.onset < (onset + self.paintNoteDur):
ids.append(n.id)
+ if onset > n.cs.onset and onset < (n.cs.onset + n.cs.duration):
+ ids.append(n.id)
if len(ids):
stream += [self.curPage, i, len(ids)] + ids
self.noteDB.deleteNotes( stream + [-1] )
@@ -599,6 +601,8 @@ class TrackInterface( gtk.EventBox ):
for n in noteS:
if n.cs.onset >= onset and n.cs.onset < (onset + self.paintNoteDur):
ids.append(n.id)
+ if onset > n.cs.onset and onset < (n.cs.onset + n.cs.duration):
+ ids.append(n.id)
if len(ids):
stream += [self.curPage, i, len(ids)] + ids
self.noteDB.deleteNotes( stream + [-1] )
@@ -829,7 +833,7 @@ class TrackInterface( gtk.EventBox ):
do = self.pixelsToTicks( self.curBeats, event.x - self.clickLoc[0] )
do = min( self.dragLimits[0][1], max( self.dragLimits[0][0], do ) )
do = self.pointerGrid * int(do / self.pointerGrid)
-
+
if do != self.lastDO:
self.lastDO = do
stream = []