summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine/TodoTitleOrSubtitle.java
diff options
context:
space:
mode:
authorDavid A. Madore <david+git@madore.org>2011-08-26 16:53:03 +0200
committerDavid A. Madore <david+git@madore.org>2011-08-26 16:53:03 +0200
commit961bdfc66151b9aef46149e4730110ef409e5587 (patch)
tree4b6ad9a0e8253905af8d8f838ef2668fec4bfc0e /org/madore/damlengine/TodoTitleOrSubtitle.java
parent7d3f4db185f5499160228afb228ecac6c6d22476 (diff)
downloaddamlengine-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/TodoTitleOrSubtitle.java')
-rw-r--r--org/madore/damlengine/TodoTitleOrSubtitle.java4
1 files changed, 2 insertions, 2 deletions
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<Node> 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