diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2009-03-25 17:40:49 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2009-03-25 17:40:49 +0000 |
commit | 9568ce7b1ff34b925af643105b969cd9090397bb (patch) | |
tree | d4107062ccc8ccc3bd283ec70b7355312aa5a3a1 | |
parent | 3633378e1d8fd582b4fac6f166fc75e86e1172a6 (diff) |
always compute range for a redirect automation line, even if it will not be drawn (avoid future bugs, and be safe)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4893 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/redirect_automation_line.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/redirect_automation_line.cc b/gtk2_ardour/redirect_automation_line.cc index b1b19d530f..942344a127 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 ??? */ } |