mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 04:06:26 +01:00
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:
parent
6a81cd5f71
commit
d731e4dba1
2 changed files with 2 additions and 1 deletions
|
|
@ -4839,7 +4839,6 @@ Editor::apply_filter (Filter& filter, string command, ProgressReporter* progress
|
||||||
|
|
||||||
if (progress) {
|
if (progress) {
|
||||||
progress->ascend ();
|
progress->ascend ();
|
||||||
progress->set_progress (float (n + 1) / N);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,9 @@ void
|
||||||
ARDOUR::Progress::ascend ()
|
ARDOUR::Progress::ascend ()
|
||||||
{
|
{
|
||||||
assert (!_stack.empty ());
|
assert (!_stack.empty ());
|
||||||
|
float const a = _stack.back().allocation;
|
||||||
_stack.pop_back ();
|
_stack.pop_back ();
|
||||||
|
_stack.back().normalised += a;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Set the progress of the current task.
|
/** Set the progress of the current task.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue