Fixed bug where cross hairs were incrorrectly draw in Automation Editor

The cross hairs in the automation editor were incorrectly drawn
when moving another window infront.
This change only draws the cross hairs when the window has focus.
This commit is contained in:
Dave French
2015-03-09 22:43:44 +00:00
parent c5402075bc
commit 51fa26ecb1

View File

@@ -1314,8 +1314,9 @@ void AutomationEditor::paintEvent(QPaintEvent * pe )
m_leftRightScroll->setPageStep( l );
}
if( validPattern() )
if( validPattern() && GuiApplication::instance()->automationEditor()->hasFocus() )
{
drawCross( p );
}