Skip to content

Commit

Permalink
fix #213
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Sep 16, 2017
1 parent 12d8edd commit e07bb25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions OSSIA/ossia/preset/preset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1082,9 +1082,10 @@ void ossia::presets::apply_preset(
{
if(!keys.empty())
keys.erase(keys.begin()); // then we have to remove the "initial" key which is the device name
if(node.get_parent())
keys.erase(keys.begin()); // remove another one in case node is not a root
}
if(node.get_parent())
keys.erase(keys.begin()); // remove another one in case node is not a root

apply_preset_node(
node, keys, itpp->second, keeparch, created_nodes, allow_nonterminal);
}
Expand Down

0 comments on commit e07bb25

Please sign in to comment.