diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2007-05-12 19:15:27 +0000 |
|---|---|---|
| committer | joncruz <joncruz@users.sourceforge.net> | 2007-05-12 19:15:27 +0000 |
| commit | 1a76e293b8f5a30aefccacf9532570743e27a482 (patch) | |
| tree | ce2d168080cfbd2a2bdd44471d1859afe062c4de /src/sp-style-elem.cpp | |
| parent | Fixed print specifier (diff) | |
| download | inkscape-1a76e293b8f5a30aefccacf9532570743e27a482.tar.gz inkscape-1a76e293b8f5a30aefccacf9532570743e27a482.zip | |
Cleaned up test doc creation
(bzr r3007)
Diffstat (limited to 'src/sp-style-elem.cpp')
| -rw-r--r-- | src/sp-style-elem.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sp-style-elem.cpp b/src/sp-style-elem.cpp index 63a9bae38..fa756242c 100644 --- a/src/sp-style-elem.cpp +++ b/src/sp-style-elem.cpp @@ -367,7 +367,9 @@ sp_style_elem_read_content(SPObject *const object) // that uses a style from it. It just forces the parent of <style> to reread its style as soon as the stylesheet // is fully loaded. Naturally, this won't work if the user of the stylesheet is its grandparent or precedent. SPObject *parent = SP_OBJECT_PARENT (object); - sp_style_read_from_object(parent->style, parent); + if ( parent ) { + sp_style_read_from_object(parent->style, parent); + } } /** |
