diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-03-18 17:34:07 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-03-18 17:34:07 +0000 |
| commit | ae7a4f0320d820a6183dde933fba576bc2c9f58f (patch) | |
| tree | 65a66cab92d156c7015b0f5629d2e52df7459f28 /src/sp-object.cpp | |
| parent | Fix writing of 'x' and 'y' attributes in multiline text via sodipode:role="li... (diff) | |
| download | inkscape-ae7a4f0320d820a6183dde933fba576bc2c9f58f.tar.gz inkscape-ae7a4f0320d820a6183dde933fba576bc2c9f58f.zip | |
Bug #1419517 Fix Crash when applying new path effect after deleting pattern of Pattern-along-path LPE
Fixed bugs:
- https://launchpad.net/bugs/1419517
(bzr r14717)
Diffstat (limited to 'src/sp-object.cpp')
| -rw-r--r-- | src/sp-object.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp index db66eb3e6..7dbc51b84 100644 --- a/src/sp-object.cpp +++ b/src/sp-object.cpp @@ -958,16 +958,15 @@ void SPObject::readAttr(gchar const *key) //g_assert(object != NULL); //g_assert(SP_IS_OBJECT(object)); g_assert(key != NULL); - //XML Tree being used here. - g_assert(this->getRepr() != NULL); + if (this->getRepr() != NULL ) { + unsigned int keyid = sp_attribute_lookup(key); + if (keyid != SP_ATTR_INVALID) { + /* Retrieve the 'key' attribute from the object's XML representation */ + gchar const *value = this->getRepr()->attribute(key); - unsigned int keyid = sp_attribute_lookup(key); - if (keyid != SP_ATTR_INVALID) { - /* Retrieve the 'key' attribute from the object's XML representation */ - gchar const *value = getRepr()->attribute(key); - - setKeyValue(keyid, value); + setKeyValue(keyid, value); + } } } |
