X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fballoon.cc;h=7e8067a577ac5db20ceb8129e977a2edf27ee819;hb=029145b3b50c435a7e699b9c600edaf219cee73b;hp=ec44f80b378009e991fa1a2e0612f39e6ccac4fb;hpb=c39d188d28fdc84cef8cbaea7b8d6e2fb718c30f;p=lilypond.git diff --git a/lily/balloon.cc b/lily/balloon.cc index ec44f80b37..7e8067a577 100644 --- a/lily/balloon.cc +++ b/lily/balloon.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 2004--2014 Han-Wen Nienhuys + Copyright (C) 2004--2015 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 @@ -42,7 +42,7 @@ MAKE_SCHEME_CALLBACK (Balloon_interface, print, 1); SCM Balloon_interface::print (SCM smob) { - Grob *me = unsmob_grob (smob); + Grob *me = unsmob (smob); if (Item *item = dynamic_cast (me)) if (!Item::break_visible (item)) @@ -60,7 +60,7 @@ MAKE_SCHEME_CALLBACK (Balloon_interface, print_spanner, 1); SCM Balloon_interface::print_spanner (SCM smob) { - Spanner *me = unsmob_spanner (smob); + Spanner *me = unsmob (smob); Spanner *orig = dynamic_cast (me->original ()); if (orig) @@ -88,8 +88,8 @@ Balloon_interface::print_spanner (SCM smob) SCM Balloon_interface::internal_balloon_print (Grob *me, Grob *p, Offset off) { - Box b (p->extent (p, X_AXIS), - p->extent (p, Y_AXIS)); + Box b (robust_relative_extent (p, p, X_AXIS), + robust_relative_extent (p, p, Y_AXIS)); Real padding = robust_scm2double (me->get_property ("padding"), .1); b.widen (padding, padding); @@ -102,7 +102,7 @@ Balloon_interface::internal_balloon_print (Grob *me, Grob *p, Offset off) SCM chain = Font_interface::text_font_alist_chain (me); SCM stencil = Text_interface::interpret_markup (me->layout ()->self_scm (), chain, bt); - Stencil *text_stil = unsmob_stencil (stencil); + Stencil *text_stil = unsmob (stencil); Offset z1;