]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/spanner.cc
fix input regression cluster cross-staff.ly
[lilypond.git] / lily / spanner.cc
index 77ee01074e5e1517f1bb8d056ad644a3f7888c9a..b5b8a933a21a693d0fe6365051f9e36d9424a45b 100644 (file)
@@ -358,11 +358,14 @@ Spanner::set_spacing_rods (SCM smob)
     {
       Rod r;
       Spanner *sp = dynamic_cast<Spanner *> (me);
-      
-
       System *root = get_root_system (me);
-      vector<Item*> cols (root->broken_col_range (sp->get_bound (LEFT)->get_column (),
-                                                 sp->get_bound (RIGHT)->get_column ()));
+      Drul_array<Item*> bounds (sp->get_bound (LEFT),
+                               sp->get_bound (RIGHT));
+      if (!bounds[LEFT] || !bounds[RIGHT])
+       return SCM_UNSPECIFIED;
+      
+      vector<Item*> cols (root->broken_col_range (bounds[LEFT]->get_column (),
+                                                 bounds[RIGHT]->get_column ()));
 
       if (cols.size ())
        {
@@ -428,5 +431,6 @@ ADD_INTERFACE (Spanner,
               "also the X-reference point of the spanner.\n",
 
               "minimum-length "
+              "to-barline "
               );