]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix position of argument in error message
authorReinhold Kainhofer <reinhold@kainhofer.com>
Thu, 11 Sep 2008 19:43:58 +0000 (21:43 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Thu, 11 Sep 2008 19:43:58 +0000 (21:43 +0200)
lily/staff-symbol-referencer-scheme.cc

index 84391d47ad8b09e02874e78bb403ea01dd354094..efa0fcd73d592b44e2887aaf9c1f19a9b418e74c 100644 (file)
@@ -30,7 +30,7 @@ LY_DEFINE (ly_position_on_line_p, "ly:position-on-line?",
            "Return whether @var{pos} is on a line of the staff associated with the the grob @var{sg} (even on an extender line).")
 {
   LY_ASSERT_SMOB (Grob, sg, 1);
-  LY_ASSERT_TYPE (scm_is_number, spos, 1);
+  LY_ASSERT_TYPE (scm_is_number, spos, 2);
   Grob *g = unsmob_grob (sg);
   Grob *st = Staff_symbol_referencer::get_staff_symbol (g);
   int pos = scm_to_int (spos);