diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2018-12-05 16:56:24 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2018-12-05 16:56:24 +0000 |
| commit | 17f8b1805e42b636549b0ef9ec9912f52a09597b (patch) | |
| tree | 0a6060f30e420d209fd309792d88e53a90ba69e2 /src/style.cpp | |
| parent | Support compiling with Debian 9. (diff) | |
| download | inkscape-17f8b1805e42b636549b0ef9ec9912f52a09597b.tar.gz inkscape-17f8b1805e42b636549b0ef9ec9912f52a09597b.zip | |
Fix crash when SVG contains a font-face rule. Introduced by commit db722f5b79ef1517f0b6e9a96968ad257dffc6f9
Diffstat (limited to 'src/style.cpp')
| -rw-r--r-- | src/style.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); |
