]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 5068: SCM/bool confusion in One_page_breaking::solve
authorDavid Kastrup <dak@gnu.org>
Tue, 14 Feb 2017 12:33:13 +0000 (13:33 +0100)
committerDavid Kastrup <dak@gnu.org>
Mon, 20 Feb 2017 14:35:06 +0000 (15:35 +0100)
This replaces an accidentally always-true condition with the
originally intended one.

lily/one-page-breaking.cc

index 6962aaf20508b1ce93a0e39ba691bb031cccb46a..bba283d9612382eb9a9f5e6de3cd46f15970b9ff 100644 (file)
@@ -94,7 +94,7 @@ One_page_breaking::solve ()
     {
       SCM this_pos = scm_car (c);
       line_posns.push_back (scm_to_double (this_pos));
-      if (scm_gr_p (this_pos, lowest_line_pos))
+      if (scm_is_true (scm_gr_p (this_pos, lowest_line_pos)))
         lowest_line_pos = this_pos;
     }