From 17f8b1805e42b636549b0ef9ec9912f52a09597b Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Wed, 5 Dec 2018 17:56:24 +0100 Subject: Fix crash when SVG contains a font-face rule. Introduced by commit db722f5b79ef1517f0b6e9a96968ad257dffc6f9 --- src/style.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/style.cpp b/src/style.cpp index 09f7f763c..aa3efa630 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -813,6 +813,7 @@ SPStyle::mergeString( gchar const *const p ) { */ void SPStyle::mergeStatement( CRStatement *statement ) { + if (statement->type != RULESET_STMT) return; CRDeclaration *decl_list = NULL; cr_statement_ruleset_get_declarations (statement, &decl_list); _mergeDeclList(decl_list, SP_STYLE_SRC_STYLE_SHEET); -- cgit v1.2.3