Catch ALL the utf8 errors (bug #244)

This commit is contained in:
Bart van Strien
2011-09-10 15:34:45 +02:00
parent 65f8bcd375
commit 9199f1be5b
+2 -2
View File
@@ -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<int>(g->spacing * mSpacing);
}
}
catch (utf8::invalid_utf8 e)
catch (utf8::exception e)
{
throw love::Exception(e.what());
}