summaryrefslogtreecommitdiffstats
path: root/src/libnrtype
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2011-04-08 21:43:15 +0000
committerJohan Engelen <goejendaagh@zonnet.nl>2011-04-08 21:43:15 +0000
commitf4242fed222ef0e27215db5e7a9edb1d7600d3d6 (patch)
tree283bc4d2dabd6b8273135e18ec96faf6f35c4e98 /src/libnrtype
parentnr-filter-skeleton is compiled on windows (good to keep it up-to-date I think... (diff)
downloadinkscape-f4242fed222ef0e27215db5e7a9edb1d7600d3d6.tar.gz
inkscape-f4242fed222ef0e27215db5e7a9edb1d7600d3d6.zip
work around an assert, to fix a crash at startup on windows
(bzr r9508.1.78)
Diffstat (limited to 'src/libnrtype')
-rw-r--r--src/libnrtype/FontInstance.cpp4
1 files changed, 3 insertions, 1 deletions
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));