Skip to content

Commit

Permalink
Merge pull request LMMS#1910 from Wallacoloo/master
Browse files Browse the repository at this point in the history
Fix for LMMS#1907 - inconsistent clamping behavior in automation editor
  • Loading branch information
tresf committed Apr 1, 2015
2 parents c1a2fde + 6e8e696 commit 77c6f5a
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions src/gui/editors/AutomationEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,11 +624,6 @@ void AutomationEditor::mouseMoveEvent(QMouseEvent * mouseEvent )
float level = getLevel( mouseEvent->y() );
int x = mouseEvent->x();

if( mouseEvent->x() <= VALUES_WIDTH )
{
update();
return;
}
x -= VALUES_WIDTH;
if( m_action == MOVE_VALUE )
{
Expand Down Expand Up @@ -699,12 +694,12 @@ void AutomationEditor::mouseMoveEvent(QMouseEvent * mouseEvent )
{
if( QApplication::overrideCursor() )
{
if( QApplication::overrideCursor()->shape() != Qt::SizeAllCursor )
if( QApplication::overrideCursor()->shape() != Qt::SizeAllCursor )
{
while( QApplication::overrideCursor() != NULL )
{
QApplication::restoreOverrideCursor();
}
while( QApplication::overrideCursor() != NULL )
{
QApplication::restoreOverrideCursor();
}

QCursor c( Qt::SizeAllCursor );
QApplication::setOverrideCursor(
Expand Down

0 comments on commit 77c6f5a

Please sign in to comment.