fixed move of TCO-selections

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@950 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-05-03 21:49:47 +00:00
parent 389f58e0b7
commit 1f6b784c0a
2 changed files with 9 additions and 3 deletions

View File

@@ -1,3 +1,8 @@
2008-05-03 Tobias Dorffel <tobydox/at/users/dot/sourceforge/dot/net>
* src/core/track.cpp:
fixed move of TCO-selections
2008-04-30 Paul Giblock <drfaygo/at/gmail/dot/com>
* src/gui/piano_roll.cpp:

View File

@@ -488,12 +488,13 @@ void trackContentObjectView::mouseMoveEvent( QMouseEvent * _me )
for( QVector<selectableObject *>::iterator it = so.begin();
it != so.end(); ++it )
{
trackContentObject * tco =
dynamic_cast<trackContentObject *>( *it );
if( tco == NULL )
trackContentObjectView * tcov =
dynamic_cast<trackContentObjectView *>( *it );
if( tcov == NULL )
{
continue;
}
trackContentObject * tco = tcov->m_tco;
tcos.push_back( tco );
smallest_pos = tMin<Sint32>( smallest_pos,
(Sint32)tco->startPosition() +