Revision: 15209
          http://gate.svn.sourceforge.net/gate/?rev=15209&view=rev
Author:   markagreenwood
Date:     2012-01-24 17:47:43 +0000 (Tue, 24 Jan 2012)
Log Message:
-----------
actually fix the tool menu generation code so it works as intended

Modified Paths:
--------------
    gate/trunk/src/gate/gui/MainFrame.java

Modified: gate/trunk/src/gate/gui/MainFrame.java
===================================================================
--- gate/trunk/src/gate/gui/MainFrame.java      2012-01-24 17:22:54 UTC (rev 
15208)
+++ gate/trunk/src/gate/gui/MainFrame.java      2012-01-24 17:47:43 UTC (rev 
15209)
@@ -4307,7 +4307,7 @@
               menuToUse = (XJMenu)item;
               continue PATH_ELEMENT;
             }
-            else if(item.getText().compareTo(pathElement) < 0) {
+            else if(item.getText().compareTo(pathElement) > 0) {
               // we've gone beyond where this menu should be in alpha
               // order
               break;
@@ -4315,7 +4315,7 @@
           }
           // if we get to here, we didn't find a menu to use - add one
           XJMenu newMenu = new XJMenu(pathElement, pathElement, this.listener);
-          menuToUse.insert(newMenu,Math.max(i-1, firstIndex));
+          menuToUse.insert(newMenu,i);
           firstIndex = 0;
           menuToUse = newMenu;
         }

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


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to