13
0

Fix uninitialised variable.

git-svn-id: svn://localhost/ardour2/branches/3.0@12944 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2012-06-26 17:58:20 +00:00
parent c147f707c1
commit 7031e12495

View File

@ -297,7 +297,7 @@ Route::set_order_key (RouteSortOrderKey key, int32_t n)
* monitor because they are considered "external" to
* the ordering of other routes.
*/
if ((!is_master() && !is_monitor()) || x->first != MixerSort) {
if (x->second != n) {
x->second = n;
@ -2130,7 +2130,7 @@ Route::set_state (const XMLNode& node, int version)
} else if (keyname == "editor") {
sk = EditorSort;
} else {
RouteSortOrderKey sk = (RouteSortOrderKey) string_2_enum (remaining.substr (0, equal), sk);
sk = (RouteSortOrderKey) string_2_enum (remaining.substr (0, equal), sk);
}
set_order_key (sk, n);