]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grob.cc
Doc: CG Remove section Building Ubuntu Distro
[lilypond.git] / lily / grob.cc
index f7bf31f2868db17937bfa33d1a64b4d35d2c9602..2f1bd8aa9f52c463c274fa28ab6fe2fc60227d03 100644 (file)
@@ -157,10 +157,14 @@ Grob::get_print_stencil () const
         }
 
       /* Calls the scheme procedure stencil-whiteout-box in scm/stencils.scm */
-      if (!transparent && to_boolean (get_property ("whiteout-box")))
+      if (!transparent && (scm_is_number (get_property("whiteout-box"))
+                           || to_boolean (get_property ("whiteout-box"))))
         {
+          Real thickness = robust_scm2double (get_property("whiteout-box"), 0.0)
+               * layout ()->get_dimension (ly_symbol2scm ("line-thickness"));
           retval = *unsmob<Stencil>
-            (Lily::stencil_whiteout_box (retval.smobbed_copy ()));
+            (Lily::stencil_whiteout_box (retval.smobbed_copy (),
+                                     scm_from_double (thickness)));
         }
 
       if (transparent)