Switch from GPLv2 to GPLv2+
[fw/altos] / altosuilib / AltosUIRateList.java
index 2e0c65a22a0baa147543be0c938ef9741ba02667..187977d39562e6ba31ff11401ac962e0b93ce4f5 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  */
 
-package org.altusmetrum.altosuilib_3;
+package org.altusmetrum.altosuilib_11;
 
 import javax.swing.*;
-import org.altusmetrum.altoslib_5.*;
+import org.altusmetrum.altoslib_11.*;
 
 public class AltosUIRateList extends JComboBox<String> {
 
@@ -28,11 +29,7 @@ public class AltosUIRateList extends JComboBox<String> {
        public void set_rate(int new_rate) {
                int i;
 
-               if (new_rate < 0) {
-                       setVisible(false);
-                       return;
-               }
-
+               setVisible(new_rate >= 0);
                setSelectedIndex(new_rate);
        }