Change where ID is modified so that the cache properly accounts for it.
This commit is contained in:
parent
2a11309edd
commit
3c98ab81dd
|
@ -1032,14 +1032,10 @@
|
||||||
var def, t = SVG.config.blacker;
|
var def, t = SVG.config.blacker;
|
||||||
var cache = SVG.config.useFontCache;
|
var cache = SVG.config.useFontCache;
|
||||||
var transform = (scale === 1 ? null : "scale("+SVG.Fixed(scale)+")");
|
var transform = (scale === 1 ? null : "scale("+SVG.Fixed(scale)+")");
|
||||||
|
if (cache && !SVG.config.useGlobalCache) {id = "E"+DEFN+"-"+id}
|
||||||
if (!cache || !GLYPHS[id]) {
|
if (!cache || !GLYPHS[id]) {
|
||||||
def = {"stroke-width":t};
|
def = {"stroke-width":t};
|
||||||
if (cache) {
|
if (cache) {def.id = id} else if (transform) {def.transform = transform}
|
||||||
if (!SVG.config.useGlobalCache) {id = "D"+DEFN+"-"+id}
|
|
||||||
def.id = id;
|
|
||||||
} else if (transform) {
|
|
||||||
def.transform = transform;
|
|
||||||
}
|
|
||||||
if (p !== "") {def.d = "M"+p+"Z"}
|
if (p !== "") {def.d = "M"+p+"Z"}
|
||||||
this.SUPER(arguments).Init.call(this,def);
|
this.SUPER(arguments).Init.call(this,def);
|
||||||
if (cache) {DEFS.appendChild(this.element); GLYPHS[id] = true;}
|
if (cache) {DEFS.appendChild(this.element); GLYPHS[id] = true;}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user