diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/display/nr-svgfonts.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/display/nr-svgfonts.cpp b/src/display/nr-svgfonts.cpp index 9b760c0bc..ccce7edc5 100644 --- a/src/display/nr-svgfonts.cpp +++ b/src/display/nr-svgfonts.cpp @@ -155,8 +155,10 @@ SvgFont::scaled_font_render_glyph (cairo_scaled_font_t *scaled_font, } NArtBpath *bpath = NULL; - if (SP_IS_GLYPH(node)) bpath = sp_svg_read_path(((SPGlyph*)node)->d); - if (SP_IS_MISSING_GLYPH(node)) bpath = sp_svg_read_path(((SPMissingGlyph*)node)->d); + if (SP_IS_GLYPH(node) && ((SPGlyph*)node)->d) bpath = sp_svg_read_path(((SPGlyph*)node)->d); + if (SP_IS_MISSING_GLYPH(node) && ((SPMissingGlyph*)node)->d) bpath = sp_svg_read_path(((SPMissingGlyph*)node)->d); + + if (!bpath) return CAIRO_STATUS_SUCCESS; cairo_new_path(cr); |
