]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/rest.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / rest.cc
index d7351d648aebf3ce7583876bb1bf8a6bac9ea2b3..b274aab8725d90ab16f73616fdf7e0228e949dfd 100644 (file)
@@ -27,9 +27,9 @@ Rest::y_offset_callback (SCM smob)
   int line_count = Staff_symbol_referencer::line_count (me);
   Real ss = Staff_symbol_referencer::staff_space (me);
 
-  bool position_override = scm_is_number (me->get_property ("staff-position"));
   Real amount = robust_scm2double (me->get_property ("staff-position"), 0)
     * 0.5 * ss;
+  bool position_override = amount;
   
   if (line_count % 2)
     {