diff options
| author | John Smith <john.smith7545@yahoo.com> | 2012-09-18 05:15:41 +0000 |
|---|---|---|
| committer | John Smith <john.smith7545@yahoo.com> | 2012-09-18 05:15:41 +0000 |
| commit | fed4cf9a7438a2e0d6833618bd769b684397a483 (patch) | |
| tree | afdae7e91a3c91ad2455fc9f9ae5085e29b4a236 /src/document.cpp | |
| parent | Fix for 979567 : Object context menu (right-click) acts on bottom-most instea... (diff) | |
| download | inkscape-fed4cf9a7438a2e0d6833618bd769b684397a483.tar.gz inkscape-fed4cf9a7438a2e0d6833618bd769b684397a483.zip | |
Fix for 1051434 : occasional crash when selecting disjoint path with markers
(bzr r11673)
Diffstat (limited to 'src/document.cpp')
| -rw-r--r-- | src/document.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/document.cpp b/src/document.cpp index 5eaab3eca..9efd9d923 100644 --- a/src/document.cpp +++ b/src/document.cpp @@ -865,6 +865,9 @@ SPObject *SPDocument::getObjectById(Glib::ustring const &id) const SPObject *SPDocument::getObjectById(gchar const *id) const { g_return_val_if_fail(id != NULL, NULL); + if (!priv || !priv->iddef) { + return NULL; + } GQuark idq = g_quark_from_string(id); gpointer rv = g_hash_table_lookup(priv->iddef, GINT_TO_POINTER(idq)); |
