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/TodoTitleOrSubtitle.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'org/madore/damlengine/TodoTitleOrSubtitle.java') diff --git a/org/madore/damlengine/TodoTitleOrSubtitle.java b/org/madore/damlengine/TodoTitleOrSubtitle.java index 5e92f41..1640b93 100644 --- a/org/madore/damlengine/TodoTitleOrSubtitle.java +++ b/org/madore/damlengine/TodoTitleOrSubtitle.java @@ -29,13 +29,13 @@ public final class TodoTitleOrSubtitle extends TodoElement { @Override public void handle() { Element elt = ctx.doc.createElementNS(DamlEngine.XHTML_NS, t.eltName); - String expLang = (t==Type.TITLE)?ctx.titleLang:ctx.subtitleLang; + String expLang = (t==Type.TITLE)?ctx.gc.titleLang:ctx.gc.subtitleLang; if ( expLang != null ) LangHelper.setLangNorec(node, expLang); elt.setAttributeNS(null, "class", t.eltClass); node.getParentNode().replaceChild(elt, node); ArrayList childList - = TodoDefaultElement.getChildList((t==Type.TITLE)?ctx.title:ctx.subtitle); + = TodoDefaultElement.getChildList((t==Type.TITLE)?ctx.gc.title:ctx.gc.subtitle); for ( Node child : childList ) elt.appendChild(child.cloneNode(true)); TodoElement it -- cgit v1.2.3