Browse Source

Catch ALL the utf8 errors (bug #244)

Bart van Strien 14 years ago
parent
commit
9199f1be5b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/modules/graphics/opengl/Font.cpp

+ 2 - 2
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<int>(g->spacing * mSpacing);
 			}
 		}
-		catch (utf8::invalid_utf8 e)
+		catch (utf8::exception e)
 		{
 			throw love::Exception(e.what());
 		}