From 9199f1be5bcd0fbd9795926851fdf005351edda2 Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Sat, 10 Sep 2011 15:34:45 +0200 Subject: [PATCH] Catch ALL the utf8 errors (bug #244) --- src/modules/graphics/opengl/Font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/graphics/opengl/Font.cpp b/src/modules/graphics/opengl/Font.cpp index 7b4386eb5..a850c7c55 100644 --- a/src/modules/graphics/opengl/Font.cpp +++ b/src/modules/graphics/opengl/Font.cpp @@ -174,7 +174,7 @@ namespace opengl dx += glyph->spacing; } } - catch (utf8::invalid_utf8 e) + catch (utf8::exception e) { glPopMatrix(); throw love::Exception(e.what()); @@ -210,7 +210,7 @@ namespace opengl temp += static_cast(g->spacing * mSpacing); } } - catch (utf8::invalid_utf8 e) + catch (utf8::exception e) { throw love::Exception(e.what()); }