diff options
| author | Kees Cook <kees@outflux.net> | 2007-01-13 07:28:41 +0000 |
|---|---|---|
| committer | keescook <keescook@users.sourceforge.net> | 2007-01-13 07:28:41 +0000 |
| commit | d51c37d151d2e080aec01158d77eaadd0b213e13 (patch) | |
| tree | 74ceffd02b0ad1b5d8ae176ac5e830278dc32a5f /src/xml | |
| parent | full correction for rest of test builds (diff) | |
| download | inkscape-d51c37d151d2e080aec01158d77eaadd0b213e13.tar.gz inkscape-d51c37d151d2e080aec01158d77eaadd0b213e13.zip | |
fixes for style-test prefs crashes
(bzr r2202)
Diffstat (limited to 'src/xml')
| -rw-r--r-- | src/xml/repr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xml/repr.h b/src/xml/repr.h index dc96cb3e6..f930ed0c5 100644 --- a/src/xml/repr.h +++ b/src/xml/repr.h @@ -143,11 +143,13 @@ Inkscape::XML::Document *sp_repr_document_new(gchar const *rootname); /// Returns root node of document. inline Inkscape::XML::Node *sp_repr_document_root(Inkscape::XML::Document const *doc) { + if (!doc) return NULL; return const_cast<Inkscape::XML::Node *>(doc->root()); } /// Returns the node's document. inline Inkscape::XML::Document *sp_repr_document(Inkscape::XML::Node const *repr) { + if (!repr) return NULL; return const_cast<Inkscape::XML::Document *>(repr->document()); } |
