From e5b3975b12420ec7f403dfcceeca3351e00b8e55 Mon Sep 17 00:00:00 2001 From: Paul Giblock Date: Fri, 23 Mar 2012 13:21:26 -0400 Subject: [PATCH] Initialize line-drawer in AutomationEditor Possible endless loop if these two state variables are not intialized. Now a line will have the origin of (0,0) if drawn (shift-click) without previously clicking on a starting spot. Perhaps not the best fix, but it works. And I think allowing this first line (instead of blocking it) is better for the enabling the user to accidently discover the feature. Conflicts: src/gui/AutomationEditor.cpp --- src/gui/AutomationEditor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/AutomationEditor.cpp b/src/gui/AutomationEditor.cpp index d87b7bf09..7e249bf1b 100644 --- a/src/gui/AutomationEditor.cpp +++ b/src/gui/AutomationEditor.cpp @@ -3,6 +3,7 @@ * actual setting of dynamic values * * Copyright (c) 2008-2013 Tobias Doerffel + * Copyright (c) 2008-2013 Paul Giblock * Copyright (c) 2006-2008 Javier Serrano Polo * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net @@ -89,6 +90,8 @@ AutomationEditor::AutomationEditor() : m_action( NONE ), m_moveStartLevel( 0 ), m_moveStartTick( 0 ), + m_drawLastLevel( 0.0f ), + m_drawLastTick( 0 ), m_ppt( DEFAULT_PPT ), m_y_delta( DEFAULT_Y_DELTA ), m_y_auto( TRUE ),