X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fgrob.cc;h=ed96f1d13a9b1386a4c64912c2d823684b397097;hb=7b3a63a4a301a67a6812a73542d25016bfb32ebb;hp=57d06515eed6032d1a08cd3c6d3445167ac8e008;hpb=70fd22ce9b84f9d3c1d44ffd79baafd370a389fb;p=lilypond.git diff --git a/lily/grob.cc b/lily/grob.cc index 57d06515ee..ed96f1d13a 100644 --- a/lily/grob.cc +++ b/lily/grob.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1997--2011 Han-Wen Nienhuys + Copyright (C) 1997--2012 Han-Wen Nienhuys LilyPond is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -170,6 +170,17 @@ Grob::get_print_stencil () const = *unsmob_stencil (scm_call_1 (ly_lily_module_constant ("stencil-whiteout"), retval.smobbed_copy ())); } + + SCM id = get_property ("id"); + if (scm_is_string (id)) + { + SCM expr = scm_list_3 (ly_symbol2scm ("id"), + id, + retval.expr ()); + + retval = Stencil (retval.extent_box (), expr); + } + } return retval; @@ -784,6 +795,7 @@ ADD_INTERFACE (Grob, "cause " "color " "cross-staff " + "id " "extra-X-extent " "extra-Y-extent " "extra-offset "