diff options
Diffstat (limited to 'src/xml')
| -rw-r--r-- | src/xml/repr.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/xml/repr.h b/src/xml/repr.h index 52f07d11f..e691eaa7f 100644 --- a/src/xml/repr.h +++ b/src/xml/repr.h @@ -98,9 +98,11 @@ void sp_repr_css_print(SPCSSAttr *css); /* Utility finctions */ /// Remove \a repr from children of its parent node. inline void sp_repr_unparent(Inkscape::XML::Node *repr) { - Inkscape::XML::Node *parent=repr->parent(); - if (parent) { - parent->removeChild(repr); + if (repr) { + Inkscape::XML::Node *parent=repr->parent(); + if (parent) { + parent->removeChild(repr); + } } } |
