]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grob-info.cc
Issue4141/2: Use Xxx:is_smob instead of Xxx:unsmob when used in boolean contexts
[lilypond.git] / lily / grob-info.cc
index 3a90b8c896eb37a4c9069200a057d86a4e02257d..419b7ff4fcf57a47d165bf20ff7e45186e2b6f79 100644 (file)
@@ -90,7 +90,7 @@ Stream_event *
 Grob_info::ultimate_event_cause () const
 {
   SCM cause = grob_->self_scm ();
-  while (Grob::unsmob (cause))
+  while (Grob::is_smob (cause))
     {
       cause = Grob::unsmob (cause)->get_property ("cause");
     }