]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grob-scheme.cc
Doc-es: typo and some format in Rhythms.
[lilypond.git] / lily / grob-scheme.cc
index 1fe50f00f18b49afb443c5a91ff6014f0c9c3321..e5976a569b799b4db7a4fa6562afe6ee4953cb0f 100644 (file)
@@ -66,7 +66,7 @@ LY_DEFINE (ly_grob_set_nested_property_x, "ly:grob-set-nested-property!",
 
   LY_ASSERT_SMOB (Grob, grob, 1);
 
-  bool type_ok = ly_cheap_is_list (symlist);
+  bool type_ok = scm_is_pair (symlist);
 
   if (type_ok)
     for (SCM s = symlist; scm_is_pair (s) && type_ok; s = scm_cdr (s))
@@ -74,7 +74,10 @@ LY_DEFINE (ly_grob_set_nested_property_x, "ly:grob-set-nested-property!",
 
   SCM_ASSERT_TYPE (type_ok, symlist, SCM_ARG2, __FUNCTION__, "list of symbols");
 
-  set_nested_property (sc, symlist, val);
+  if (scm_is_pair (scm_cdr (symlist)))
+    set_nested_property (sc, symlist, val);
+  else
+    ly_grob_set_property_x (grob, scm_car (symlist), val);
   return SCM_UNSPECIFIED;
 }
 
@@ -477,4 +480,4 @@ LY_DEFINE (ly_grob_get_vertical_axis_group_index, "ly:grob-get-vertical-axis-gro
   LY_ASSERT_SMOB (Grob, grob, 1);
 
   return scm_from_int (Grob::get_vertical_axis_group_index (gr));
-}
\ No newline at end of file
+}