Fix up progress bar on normalization.
authorCarl Hetherington <carl@carlh.net>
Thu, 28 Oct 2010 17:02:29 +0000 (17:02 +0000)
committerCarl Hetherington <carl@carlh.net>
Thu, 28 Oct 2010 17:02:29 +0000 (17:02 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@7934 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_ops.cc
libs/ardour/progress.cc

index 93cdbf2254bb9031f8dac656e4084b6773bf78ee..b03df00cec0b6b4d699c1d70ebd2325f986f37b6 100644 (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);
                        }
                }
 
index 0679ce8a13069548d436ffeb3541db06163a6d45..d09309f7934313171e87ca617f1772db3b705d06 100644 (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.