Revision: ac48e7194ddb Author: John Boyer <john.boyer@xxxxxxxxxxxxxxxxx> Date: Sat May 5 17:52:09 2012 Log: minor bugfix in BBIni http://code.google.com/p/brailleblaster/source/detail?r=ac48e7194ddb Modified: /src/main/org/brailleblaster/BBIni.java /src/main/org/brailleblaster/wordprocessor/BBMenu.java ======================================= --- /src/main/org/brailleblaster/BBIni.java Mon Apr 30 15:40:55 2012 +++ /src/main/org/brailleblaster/BBIni.java Sat May 5 17:52:09 2012 @@ -141,7 +141,7 @@ } if (args.length > 0) { int i = 0; - while (args[i].charAt(0) == '-') { + while (args[i].charAt(0) == '-' && i < args.length) { if (args[i].equals ("-debug")) { debug = true; } =======================================--- /src/main/org/brailleblaster/wordprocessor/BBMenu.java Fri May 4 01:12:16 2012 +++ /src/main/org/brailleblaster/wordprocessor/BBMenu.java Sat May 5 17:52:09 2012
@@ -118,7 +118,7 @@ MenuItem aboutItem; //5/3 - MenuItem swtichItem; + MenuItem switchItem; BBMenu (final DocumentManager dm) { LocaleHandler lh = new LocaleHandler(); @@ -174,9 +174,9 @@ }); //5/3 just a tmp place to test the switch function - swtichItem = new MenuItem (fileMenu, SWT.PUSH); - swtichItem.setText (lh.localValue("S&wtich")); - swtichItem.addSelectionListener (new SelectionAdapter() { + switchItem = new MenuItem (fileMenu, SWT.PUSH); + switchItem.setText (lh.localValue("S&wtich")); + switchItem.addSelectionListener (new SelectionAdapter() { public void widgetSelected (SelectionEvent e) { dm.setReturn(WP.SwitchDocuments); }