Revision: 17607
          http://sourceforge.net/p/gate/code/17607
Author:   markagreenwood
Date:     2014-03-09 12:30:33 +0000 (Sun, 09 Mar 2014)
Log Message:
-----------
and fixing the generics, leads me to fixing yet another bug that would 
otherwise have gone unnoticed -- shame it's in code that is almost never used 
these days. ah well at least it proves that doing this is at least partly 
worthwhile, rather than just a result of my compiler warning OCD tendancies :)

Modified Paths:
--------------
    gate/trunk/src/main/gate/gui/SyntaxTreeViewer.java

Modified: gate/trunk/src/main/gate/gui/SyntaxTreeViewer.java
===================================================================
--- gate/trunk/src/main/gate/gui/SyntaxTreeViewer.java  2014-03-09 12:12:49 UTC 
(rev 17606)
+++ gate/trunk/src/main/gate/gui/SyntaxTreeViewer.java  2014-03-09 12:30:33 UTC 
(rev 17607)
@@ -1327,7 +1327,7 @@
 
     Integer id = new Integer(button.getActionCommand());
     STreeNode node = nonTerminals.get(id);
-    nonTerminals.remove(node);
+    nonTerminals.remove(id);
     node.removeAnnotation(document);
 
     //fix the STreeNodes involved
@@ -1335,7 +1335,7 @@
     removeNodesAbove(node);
 
     //remove button from everywhere
-    buttons.remove(button);
+    buttons.remove(id);
     button.setVisible(false);
     this.remove(button);
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to