]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/simple-spacer.cc
fret-diagram with barre returns weird output
[lilypond.git] / lily / simple-spacer.cc
index ce587c5fdd644080b336783f6c151a9498a488cd..271c1521c5e7d667fd55e950bffd4c68bfffce46 100644 (file)
@@ -32,8 +32,6 @@
 #include "spring.hh"
 #include "warn.hh"
 
-ADD_SMOB_INIT (Simple_spacer);
-
 /*
   A simple spacing constraint solver. The approach:
 
@@ -382,7 +380,7 @@ get_column_description (vector<Grob *> const &cols, vsize col_index, bool line_s
   for (SCM s = Spaceable_grob::get_minimum_distances (col);
        scm_is_pair (s); s = scm_cdr (s))
     {
-      Grob *other = Grob::unsmob (scm_caar (s));
+      Grob *other = unsmob<Grob> (scm_caar (s));
       vsize j = binary_search (cols, other, Paper_column::less_than, col_index);
       if (j != VPOS)
         {