]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/item-scheme.cc
Merge branch 'master' of git+ssh://jneem@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / lily / item-scheme.cc
index 0ebbc2832de9a65663a665e7e39a847a23c3c317..426d9532a6ebeb3fcee8cc145d01aec3b68a71dc 100644 (file)
@@ -24,7 +24,7 @@ LY_DEFINE (ly_item_break_dir, "ly:item-break-dir",
           "The break status dir of item @var{it}. @code{-1} is end of "
           "line, @code{0} unbroken, and @code{1} begin of line.")
 {
-  Item *me = dynamic_cast<Item *> (unsmob_grob (it));
-  SCM_ASSERT_TYPE (me, it, SCM_ARG1, __FUNCTION__, "Item");
+  LY_ASSERT_TYPE (unsmob_item, it, 1);
+  Item *me = unsmob_item (it);
   return scm_from_int (me->break_status_dir ());
 }