mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Catch not just the generic utf8 exception, but a few specific ones as well (bug #244)
This commit is contained in:
@@ -174,6 +174,16 @@ namespace opengl
|
|||||||
dx += glyph->spacing;
|
dx += glyph->spacing;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (utf8::invalid_code_point e)
|
||||||
|
{
|
||||||
|
glPopMatrix();
|
||||||
|
throw love::Exception(e.what());
|
||||||
|
}
|
||||||
|
catch (utf8::invalid_utf8 e)
|
||||||
|
{
|
||||||
|
glPopMatrix();
|
||||||
|
throw love::Exception(e.what());
|
||||||
|
}
|
||||||
catch (utf8::exception e)
|
catch (utf8::exception e)
|
||||||
{
|
{
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
@@ -210,6 +220,16 @@ namespace opengl
|
|||||||
temp += static_cast<int>(g->spacing * mSpacing);
|
temp += static_cast<int>(g->spacing * mSpacing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (utf8::invalid_code_point e)
|
||||||
|
{
|
||||||
|
glPopMatrix();
|
||||||
|
throw love::Exception(e.what());
|
||||||
|
}
|
||||||
|
catch (utf8::invalid_utf8 e)
|
||||||
|
{
|
||||||
|
glPopMatrix();
|
||||||
|
throw love::Exception(e.what());
|
||||||
|
}
|
||||||
catch (utf8::exception e)
|
catch (utf8::exception e)
|
||||||
{
|
{
|
||||||
throw love::Exception(e.what());
|
throw love::Exception(e.what());
|
||||||
|
|||||||
Reference in New Issue
Block a user