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/TodoSubtitleElement.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'org/madore/damlengine/TodoSubtitleElement.java') diff --git a/org/madore/damlengine/TodoSubtitleElement.java b/org/madore/damlengine/TodoSubtitleElement.java index 05c17fc..361bcfc 100644 --- a/org/madore/damlengine/TodoSubtitleElement.java +++ b/org/madore/damlengine/TodoSubtitleElement.java @@ -23,14 +23,14 @@ public final class TodoSubtitleElement extends TodoDefaultElement { @Override public void handleNodeOnly() { - if ( ctx.subtitle != null ) + if ( ctx.gc.subtitle != null ) throw new IllegalArgumentException("attempting to redefine subtitle"); - ctx.subtitle = ctx.doc.createDocumentFragment(); - ctx.subtitleStr = node.getTextContent(); - ctx.subtitleLang = LangHelper.getLangRec(node); + ctx.gc.subtitle = ctx.doc.createDocumentFragment(); + ctx.gc.subtitleStr = node.getTextContent(); + ctx.gc.subtitleLang = LangHelper.getLangRec(node); ArrayList childList = getChildList(node); for ( Node child : childList ) { - ctx.subtitle.appendChild(child); + ctx.gc.subtitle.appendChild(child); } Node ws = node.getNextSibling(); if ( ( ws.getNodeType() == Node.TEXT_NODE -- cgit v1.2.3