diff options
author | David A. Madore <david+git@madore.org> | 2011-08-26 16:53:03 +0200 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2011-08-26 16:53:03 +0200 |
commit | 961bdfc66151b9aef46149e4730110ef409e5587 (patch) | |
tree | 4b6ad9a0e8253905af8d8f838ef2668fec4bfc0e /org/madore/damlengine/TodoBodyElement.java | |
parent | 7d3f4db185f5499160228afb228ecac6c6d22476 (diff) | |
download | damlengine-961bdfc66151b9aef46149e4730110ef409e5587.tar.gz damlengine-961bdfc66151b9aef46149e4730110ef409e5587.tar.bz2 damlengine-961bdfc66151b9aef46149e4730110ef409e5587.zip |
Move most of the context to a "general context" substructure.
This is so as to make sure that cloning (which does a shallow copy)
gives us references to the same mutable content.
Diffstat (limited to 'org/madore/damlengine/TodoBodyElement.java')
-rw-r--r-- | org/madore/damlengine/TodoBodyElement.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/org/madore/damlengine/TodoBodyElement.java b/org/madore/damlengine/TodoBodyElement.java index fd75b89..4286aa0 100644 --- a/org/madore/damlengine/TodoBodyElement.java +++ b/org/madore/damlengine/TodoBodyElement.java @@ -36,7 +36,7 @@ public final class TodoBodyElement extends TodoDefaultElement { ArrayList<Node> childList = getChildList(this.node); ArrayList<TodoElement> toProcess = new ArrayList<TodoElement>(childList.size()+8); if ( node.getAttributeNS(null, "notitle").equals("") - && ctx.title != null ) { + && ctx.gc.title != null ) { Element token = ctx.doc.createElementNS(DamlEngine.DAML_NS, "d:implicit-do-title"); bodyNode.appendChild(ctx.doc.createTextNode("\n")); @@ -45,7 +45,7 @@ public final class TodoBodyElement extends TodoDefaultElement { token, this.ctx, this)); } if ( node.getAttributeNS(null, "nosubtitle").equals("") - && ctx.subtitle != null ) { + && ctx.gc.subtitle != null ) { Element token = ctx.doc.createElementNS(DamlEngine.DAML_NS, "d:implicit-do-subtitle"); bodyNode.appendChild(ctx.doc.createTextNode("\n")); @@ -61,7 +61,7 @@ public final class TodoBodyElement extends TodoDefaultElement { toProcess.add(new TodoNavbar(token, this.ctx, this)); } if ( node.getAttributeNS(null, "notranslations").equals("") - && ctx.translations != null ) { + && ctx.gc.translations != null ) { Element token = ctx.doc.createElementNS(DamlEngine.DAML_NS, "d:implicit-do-translations"); bodyNode.appendChild(ctx.doc.createTextNode("\n")); |