diff options
| author | Jabier Arraiza Cenoz <jabier.arraiza@marker.es> | 2016-03-18 17:58:10 +0000 |
|---|---|---|
| committer | jabiertxof <info@marker.es> | 2016-03-18 17:58:10 +0000 |
| commit | 4596974f9ee43a2f5700e3daa468474179aaa829 (patch) | |
| tree | 11dbd79b81ded6e4c12f55145c2845c3683fb72d /src/sp-object.cpp | |
| parent | Bug #1419517 Fix Crash when applying new path effect after deleting pattern o... (diff) | |
| download | inkscape-4596974f9ee43a2f5700e3daa468474179aaa829.tar.gz inkscape-4596974f9ee43a2f5700e3daa468474179aaa829.zip | |
Remove code of a semifixed bug
(bzr r14718)
Diffstat (limited to 'src/sp-object.cpp')
| -rw-r--r-- | src/sp-object.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/sp-object.cpp b/src/sp-object.cpp index 7dbc51b84..db66eb3e6 100644 --- a/src/sp-object.cpp +++ b/src/sp-object.cpp @@ -958,15 +958,16 @@ 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. - 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); + g_assert(this->getRepr() != NULL); - setKeyValue(keyid, value); - } + 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); } } |
