Fix automation cursor position issue

This commit is contained in:
Tres Finocchiaro
2014-11-04 00:13:38 -05:00
parent 6c9b87f016
commit 1826ced3d2
2 changed files with 6 additions and 1 deletions

View File

@@ -62,6 +62,11 @@ public:
return getTact() * s_ticksPerTact;
}
MidiTime toAbsoluteTact() const
{
return getTact() * s_ticksPerTact;
}
MidiTime& operator=( const MidiTime& time )
{
m_ticks = time.m_ticks;

View File

@@ -174,7 +174,7 @@ void AutomationTrackView::dropEvent( QDropEvent * _de )
getTrackContentWidget()->x() ) *
MidiTime::ticksPerTact() /
static_cast<int>( trackContainerView()->pixelsPerTact() ) )
.toNearestTact();
.toAbsoluteTact();
if( pos.getTicks() < 0 )
{