From 2387d77ad58f25983c47d36264f228f4f8078a37 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Wed, 24 Aug 2011 17:45:33 +0000 Subject: fixed "moving notes in pianoroll with clone parts open duplicates notes"-bug --- muse2/muse/midiedit/dcanvas.cpp | 4 ---- muse2/muse/midiedit/prcanvas.cpp | 2 -- 2 files changed, 6 deletions(-) (limited to 'muse2') diff --git a/muse2/muse/midiedit/dcanvas.cpp b/muse2/muse/midiedit/dcanvas.cpp index d4ee9999..fd046bc7 100644 --- a/muse2/muse/midiedit/dcanvas.cpp +++ b/muse2/muse/midiedit/dcanvas.cpp @@ -244,10 +244,6 @@ UndoOp DrumCanvas::moveItem(CItem* item, const QPoint& pos, DragType dtype) newEvent.setPitch(npitch); newEvent.setTick(ntick); - // msgAddEvent and msgChangeEvent (below) will set these, but set them here first? - //item->setPart(part); - item->setEvent(newEvent); - // Added by T356, removed by flo93: with operation groups, it happens that the // part is too short right now, even if it's queued for being extended //if(((int)newEvent.endTick() - (int)part->lenTick()) > 0) diff --git a/muse2/muse/midiedit/prcanvas.cpp b/muse2/muse/midiedit/prcanvas.cpp index 9e99f24d..75171bf5 100644 --- a/muse2/muse/midiedit/prcanvas.cpp +++ b/muse2/muse/midiedit/prcanvas.cpp @@ -467,8 +467,6 @@ UndoOp PianoCanvas::moveItem(CItem* item, const QPoint& pos, DragType dtype) newEvent.setTick(ntick); newEvent.setLenTick(event.lenTick()); - item->setEvent(newEvent); - // Added by T356, removed by flo93: with operation groups, it happens that the // part is too short right now, even if it's queued for being extended //if(((int)newEvent.endTick() - (int)part->lenTick()) > 0) -- cgit v1.2.3