summaryrefslogtreecommitdiffstats
path: root/src/xml
diff options
context:
space:
mode:
authorJabier Arraiza Cenoz <jabier.arraiza@marker.es>2013-04-10 09:24:37 +0000
committerJabiertxo Arraiza Zenotz <jtx@jtx.marker.es>2013-04-10 09:24:37 +0000
commit850b66384422dd18e3d2be7bd75ae05498aa86e2 (patch)
tree8c64eab17ee23d0c459cd16416a8f678e86dd350 /src/xml
parentfixing error moving selected nodes (diff)
parentpatch by Damjan Velickovski for rotation snap degrees, Bug 525508 (diff)
downloadinkscape-850b66384422dd18e3d2be7bd75ae05498aa86e2.tar.gz
inkscape-850b66384422dd18e3d2be7bd75ae05498aa86e2.zip
Fixing problem whith changing node sselected - not solved
(bzr r11950.1.87)
Diffstat (limited to 'src/xml')
-rw-r--r--src/xml/repr.h8
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);
+ }
}
}