Fix up progress bar on normalization.

git-svn-id: svn://localhost/ardour2/branches/3.0@7934 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-10-28 17:02:29 +00:00
parent 6a81cd5f71
commit d731e4dba1
2 changed files with 2 additions and 1 deletions

View file

@ -4839,7 +4839,6 @@ Editor::apply_filter (Filter& filter, string command, ProgressReporter* progress
if (progress) {
progress->ascend ();
progress->set_progress (float (n + 1) / N);
}
}

View file

@ -46,7 +46,9 @@ void
ARDOUR::Progress::ascend ()
{
assert (!_stack.empty ());
float const a = _stack.back().allocation;
_stack.pop_back ();
_stack.back().normalised += a;
}
/** Set the progress of the current task.