Changeset 9014


Ignore:
Timestamp:
2005-02-11T14:40:09+13:00 (19 years ago)
Author:
kjdon
Message:

adding a new element to plugins list not in the first collection caused a wrong document exception. now we import the node. but has this fixed the problem or just put a plaster on it? should the list be rebuilt for the new collection?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/Plugin.java

    r8817 r9014  
    114114            new_argument.setElement(argument_element);
    115115            // All done. Add it.
    116             element.appendChild(argument_element);
     116            // if we are not in the first collection opened, then this
     117            /// will belong to a different document, so need to import
     118            // it.
     119            element.appendChild(element.getOwnerDocument().importNode(argument_element, true));
    117120            add(new_argument);
    118121        }
Note: See TracChangeset for help on using the changeset viewer.