X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ffont-metric.cc;h=215bf679812bee9da7f56682e67dd41cfd9b9bb9;hb=1d23a8fe3d3abd847bb9199e64241347d836917b;hp=2f61d53f3fb821746b6a64e29b98d6a867b1cbdd;hpb=16cb456cabf477f6d398ff731aa0f10b60913394;p=lilypond.git diff --git a/lily/font-metric.cc b/lily/font-metric.cc index 2f61d53f3f..215bf67981 100644 --- a/lily/font-metric.cc +++ b/lily/font-metric.cc @@ -31,7 +31,7 @@ Font_metric::design_size () const Stencil Font_metric::find_by_name (string s) const { - replace_all (s, '-', 'M'); + replace_all (&s, '-', 'M'); int idx = name_to_index (s); Box b; @@ -188,7 +188,7 @@ Stencil Font_metric::text_stencil (string str) const { (void) str; - assert (false); + programming_error("Cannot get a text stencil from this font"); return Stencil (Box (), SCM_EOL); }