From 7cd6aef00d86700498fcb509f754bf3ac1d7e510 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 25 Mar 2009 17:40:49 +0000 Subject: [PATCH] always compute range for a redirect automation line, even if it will not be drawn (avoid future bugs, and be safe) git-svn-id: http://subversion.ardour.org/svn/ardour2/ardour2/branches/2.0-ongoing@4893 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/redirect_automation_line.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/redirect_automation_line.cc b/gtk2_ardour/redirect_automation_line.cc index b1b19d530..942344a12 100644 --- a/gtk2_ardour/redirect_automation_line.cc +++ b/gtk2_ardour/redirect_automation_line.cc @@ -58,6 +58,7 @@ RedirectAutomationLine::RedirectAutomationLine (const string & name, Redirect& r upper = desc.upper; lower = desc.lower; + range = upper - lower; if (desc.toggled) { no_draw = true; @@ -65,7 +66,6 @@ RedirectAutomationLine::RedirectAutomationLine (const string & name, Redirect& r } no_draw = false; - range = upper - lower; /* XXX set min/max for underlying curve ??? */ } -- 2.11.4.GIT