diff options
| author | su_v <suv-sf@users.sourceforge.net> | 2013-04-08 15:06:08 +0000 |
|---|---|---|
| committer | ~suv <suv-sf@users.sourceforge.net> | 2013-04-08 15:06:08 +0000 |
| commit | f332fa6dbb58ab6b8e17f9b720f334c5e2722812 (patch) | |
| tree | 2ead4c65ceb8f91aeb84628f9ca4849547d281c9 /src/xml | |
| parent | merge from trunk (r12258) (diff) | |
| parent | Implement read/write of image-rendering property. To be used to control scaling. (diff) | |
| download | inkscape-f332fa6dbb58ab6b8e17f9b720f334c5e2722812.tar.gz inkscape-f332fa6dbb58ab6b8e17f9b720f334c5e2722812.zip | |
merge from trunk (r12272)
(bzr r11668.1.66)
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); + } } } |
