summaryrefslogtreecommitdiffstats
path: root/src/sp-style-elem.cpp
diff options
context:
space:
mode:
authorJon A. Cruz <jon@joncruz.org>2011-02-21 21:43:30 +0000
committerJon A. Cruz <jon@joncruz.org>2011-02-21 21:43:30 +0000
commitaa8c0d876949c952ab355c096017301a00734456 (patch)
tree6aeabb3dc05451470bc8c6a0f72ca1634eed2ace /src/sp-style-elem.cpp
parentemf import. support for round rectangle (Bug 247695) (diff)
downloadinkscape-aa8c0d876949c952ab355c096017301a00734456.tar.gz
inkscape-aa8c0d876949c952ab355c096017301a00734456.zip
Finished cleanup of outdated SP_OBJECT_PARENT C macro.
(bzr r10064)
Diffstat (limited to 'src/sp-style-elem.cpp')
-rw-r--r--src/sp-style-elem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp-style-elem.cpp b/src/sp-style-elem.cpp
index 02ed80445..2e14ae5ff 100644
--- a/src/sp-style-elem.cpp
+++ b/src/sp-style-elem.cpp
@@ -366,7 +366,7 @@ sp_style_elem_read_content(SPObject *const object)
// Below is a partial hack that fixes this for a single case: when the <style> is a child of the object
// that uses a style from it. It just forces the parent of <style> to reread its style as soon as the stylesheet
// is fully loaded. Naturally, this won't work if the user of the stylesheet is its grandparent or precedent.
- SPObject *parent = SP_OBJECT_PARENT (object);
+ SPObject *parent = object->parent;
if ( parent ) {
sp_style_read_from_object(parent->style, parent);
}