From 51fa26ecb119f07ba7f2500d0c12aeef5f3e043f Mon Sep 17 00:00:00 2001 From: Dave French Date: Mon, 9 Mar 2015 22:43:44 +0000 Subject: [PATCH] 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. --- src/gui/editors/AutomationEditor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/editors/AutomationEditor.cpp b/src/gui/editors/AutomationEditor.cpp index 7c4b77dbf..3146d49b1 100644 --- a/src/gui/editors/AutomationEditor.cpp +++ b/src/gui/editors/AutomationEditor.cpp @@ -1314,8 +1314,9 @@ void AutomationEditor::paintEvent(QPaintEvent * pe ) m_leftRightScroll->setPageStep( l ); } - if( validPattern() ) + if( validPattern() && GuiApplication::instance()->automationEditor()->hasFocus() ) { + drawCross( p ); }