From: Han-Wen Nienhuys Date: Fri, 17 Feb 2006 01:42:58 +0000 (+0000) Subject: (change_to): formatting. X-Git-Tag: release/2.7.35~10 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=c716d431c90522b94573dccddae902c1a2714152;p=lilypond.git (change_to): formatting. --- diff --git a/ChangeLog b/ChangeLog index 50490729a6..50d2c851ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2006-02-17 Han-Wen Nienhuys + * lily/auto-change-iterator.cc (change_to): formatting. + * lily/beam.cc (get_default_dir): take extreme note head as input for stem direction. diff --git a/lily/auto-change-iterator.cc b/lily/auto-change-iterator.cc index bbf2fe509f..f5c54f224c 100644 --- a/lily/auto-change-iterator.cc +++ b/lily/auto-change-iterator.cc @@ -63,22 +63,24 @@ Auto_change_iterator::change_to (Music_iterator *it, SCM to_type_sym, } if (current) - if (last) - { - Context *dest - = it->get_outlet ()->find_create_context (to_type_sym, to_id, SCM_EOL); - current->remove_context (last); - dest->add_context (last); - } - else - { - /* - We could change the current translator's id, but that would make - errors hard to catch - - */ - } - else; + { + if (last) + { + Context *dest + = it->get_outlet ()->find_create_context (to_type_sym, to_id, SCM_EOL); + current->remove_context (last); + dest->add_context (last); + } + else + { + /* + We could change the current translator's id, but that would make + errors hard to catch + + */ + ; + } + } } void