Load/save automationPattern position. Allow dragging autoViews directly onto automationTrack
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1205 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -150,6 +150,11 @@ void automationTrackView::dropEvent( QDropEvent * _de )
|
||||
static_cast<int>( getTrackContainerView()->pixelsPerTact() ) )
|
||||
.toNearestTact();
|
||||
|
||||
if( pos.getTicks() < 0 )
|
||||
{
|
||||
pos.setTicks( 0 );
|
||||
}
|
||||
|
||||
trackContentObject * tco = getTrack()->createTCO( pos );
|
||||
automationPattern * pat = dynamic_cast< automationPattern *>( tco );
|
||||
pat->addObject( mod );
|
||||
|
||||
Reference in New Issue
Block a user