summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp1
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);