]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/spacing-basic.cc
Issue4141/2: Use Xxx:is_smob instead of Xxx:unsmob when used in boolean contexts
[lilypond.git] / lily / spacing-basic.cc
index 53b9de3a2c9fc502adf0fac4f4a59f7638a04162..282ceae729714be9af486664f9239d04c95a3dfa 100644 (file)
@@ -111,7 +111,7 @@ Spacing_spanner::note_spacing (Grob * /* me */,
   Moment shortest_playing_len = 0;
   SCM s = lc->get_property ("shortest-playing-duration");
 
-  if (Moment::unsmob (s))
+  if (Moment::is_smob (s))
     shortest_playing_len = *Moment::unsmob (s);
 
   if (! shortest_playing_len.to_bool ())