From 961bdfc66151b9aef46149e4730110ef409e5587 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Fri, 26 Aug 2011 16:53:03 +0200 Subject: 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. --- org/madore/damlengine/TodoBodyElement.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'org/madore/damlengine/TodoBodyElement.java') 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 childList = getChildList(this.node); ArrayList toProcess = new ArrayList(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")); -- cgit v1.2.3