X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftext-interface.cc;h=9d442b497158f3c1bc0c91a310c0ab5eeccdb544;hb=1bba302abc6b79d82a822a6a1803e8bb0e0225a0;hp=4c28ee8671373ecd3304da89fad76a938b3d8052;hpb=4ecdbd7d70ca7441be4dddd15ac01cc255bc2a35;p=lilypond.git diff --git a/lily/text-interface.cc b/lily/text-interface.cc index 4c28ee8671..9d442b4971 100644 --- a/lily/text-interface.cc +++ b/lily/text-interface.cc @@ -3,14 +3,12 @@ source file of the GNU LilyPond music typesetter - (c) 1998--2005 Han-Wen Nienhuys + (c) 1998--2005 Han-Wen Nienhuys Jan Nieuwenhuizen */ #include "text-interface.hh" -#include -using namespace std; #include "main.hh" #include "config.hh" @@ -57,8 +55,10 @@ Text_interface::interpret_markup (SCM layout_smob, SCM props, SCM markup) } else { - programming_error ("not a markup: "); + programming_error ("Object is not a markup. "); + scm_puts ("This object should be a markup: ", scm_current_error_port ()); scm_display (markup, scm_current_error_port ()); + scm_puts ("\n", scm_current_error_port ()); Box b; b[X_AXIS].set_empty (); @@ -77,7 +77,7 @@ Text_interface::print (SCM grob) SCM t = me->get_property ("text"); SCM chain = Font_interface::text_font_alist_chain (me); - return interpret_markup (me->get_layout ()->self_scm (), chain, t); + return interpret_markup (me->layout ()->self_scm (), chain, t); } /* Ugh. Duplicated from Scheme. */