From f4242fed222ef0e27215db5e7a9edb1d7600d3d6 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Fri, 8 Apr 2011 23:43:15 +0200 Subject: work around an assert, to fix a crash at startup on windows (bzr r9508.1.78) --- src/libnrtype/FontInstance.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libnrtype') diff --git a/src/libnrtype/FontInstance.cpp b/src/libnrtype/FontInstance.cpp index 085cc6c88..7dc8bb859 100644 --- a/src/libnrtype/FontInstance.cpp +++ b/src/libnrtype/FontInstance.cpp @@ -557,7 +557,9 @@ void font_instance::LoadGlyph(int glyph_id) break; case TT_PRIM_QSPLINE: - g_assert(polyCurve->cpfx % 2 == 0); + //g_assert(polyCurve->cpfx % 2 == 0); + if (polyCurve->cpfx % 2 != 0) return; + while ( p != endp ) { path_builder.quadTo(pointfx_to_nrpoint(p[0], scale), pointfx_to_nrpoint(p[1], scale)); -- cgit v1.2.3