mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-25 16:07:49 +01:00
add safeguard to PhaseControl::set_state(). Mixbus Master has a blank phase control value
This commit is contained in:
parent
f960976d7f
commit
e140a12bf5
1 changed files with 2 additions and 1 deletions
|
|
@ -86,7 +86,8 @@ PhaseControl::set_state (XMLNode const & node, int version)
|
|||
|
||||
std::string str;
|
||||
if (node.get_property (X_("phase-invert"), str)) {
|
||||
set_phase_invert (boost::dynamic_bitset<> (str));
|
||||
if(str.length() != 0)
|
||||
set_phase_invert (boost::dynamic_bitset<> (str));
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue