X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fballoon.cc;h=7e8067a577ac5db20ceb8129e977a2edf27ee819;hb=269d0c6d104c40f75e225f93459fd827f4065905;hp=859aa5f422cad33e439436fff23ca30f269c21ac;hpb=e8b68d8a878a0ee0381719230cf911dbcefa168d;p=lilypond.git diff --git a/lily/balloon.cc b/lily/balloon.cc index 859aa5f422..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 = Grob::unsmob (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 = Spanner::unsmob (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 = Stencil::unsmob (stencil); + Stencil *text_stil = unsmob (stencil); Offset z1;