Revision 42051

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/toc/gui/TOC.java
267 267
        DefaultMutableTreeNode n;
268 268
        @SuppressWarnings("rawtypes")
269 269
        Enumeration enumeration = node.children();
270
        //Copia necesaria para que los cambios no adulteren el estado inicial del TOC
271
        Map<String, Boolean> m_ItemsExpanded_copy = new HashMap<String, Boolean>(m_ItemsExpanded);
270 272

  
271 273
        while (enumeration.hasMoreElements()) {
272 274
            n = (DefaultMutableTreeNode) enumeration.nextElement();
......
275 277
            }
276 278
            TreePath path = new TreePath(m_TreeModel.getPathToRoot(n));
277 279
            ITocItem item = (ITocItem) n.getUserObject();
278
            Boolean b = (Boolean) m_ItemsExpanded.get(item.getLabel());
280
            Boolean b = (Boolean) m_ItemsExpanded_copy.get(item.getLabel());
279 281

  
280 282
            if (b == null) // No estaba en el hash todav?a: valor por defecto
281 283
            {

Also available in: Unified diff