From 99568b15329dfb22e946137a6e8a37255534a6d0 Mon Sep 17 00:00:00 2001 From: buliabyak Date: Sun, 11 Mar 2007 06:08:06 +0000 Subject: [PATCH] fix 1491639 --- src/sp-style-elem.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/sp-style-elem.cpp b/src/sp-style-elem.cpp index d713a518b..63a9bae38 100644 --- a/src/sp-style-elem.cpp +++ b/src/sp-style-elem.cpp @@ -4,6 +4,7 @@ #include "document.h" #include "sp-style-elem.h" #include "attributes.h" +#include "style.h" using Inkscape::XML::TEXT_NODE; static void sp_style_elem_init(SPStyleElem *style_elem); @@ -358,6 +359,15 @@ sp_style_elem_read_content(SPObject *const object) } cr_parser_destroy(parser); //object->requestDisplayUpdate(SP_OBJECT_MODIFIED_FLAG); + + // Style references via class= do not, and actually cannot, use autoupdating URIReferences. + // Therefore, if an object refers to a stylesheet which has not yet loaded when the object is being loaded + // (e.g. if the stylesheet is below or inside the object in XML), its class= has no effect (bug 1491639). + // Below is a partial hack that fixes this for a single case: when the