]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/key-engraver.cc
Docs: make Snippets TOC effective and split Contributors' Guide at sections
[lilypond.git] / lily / key-engraver.cc
index 4ca7a39f2b1c263268a9976d543ba7d20751cb2c..87040e0c41630a2238f5cb68a8b597eeeebf628a 100644 (file)
@@ -79,8 +79,9 @@ Key_engraver::create_key (bool is_default)
              SCM new_alter_pair = scm_assoc (scm_caar (s), key);
              Rational old_alter = robust_scm2rational (scm_cdar (s), 0);
              if (new_alter_pair == SCM_BOOL_F
-                 || extranatural
-                 && (ly_scm2rational (scm_cdr (new_alter_pair)) - old_alter)*old_alter < Rational (0))
+                 || (extranatural
+                     && (ly_scm2rational (scm_cdr (new_alter_pair)) - old_alter)*old_alter
+                         < Rational (0)))
                {
                  *tail = scm_cons (scm_car (s), *tail);
                  tail = SCM_CDRLOC (*tail);