From c3bc482d3befb927fdad99188c9bac94a0e52443 Mon Sep 17 00:00:00 2001 From: Joe Neeman Date: Fri, 18 Apr 2008 18:38:32 +1000 Subject: [PATCH] Don't crash if someone attempts to use an OTF font for a text string. --- lily/font-metric.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lily/font-metric.cc b/lily/font-metric.cc index 2f61d53f3f..655d992123 100644 --- a/lily/font-metric.cc +++ b/lily/font-metric.cc @@ -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); } -- 2.11.4.GIT