Changeset 3174 in josm for trunk/src


Ignore:
Timestamp:
2010-04-07T10:35:16+02:00 (10 years ago)
Author:
bastiK
Message:

fixed #4858 (ArrayIndexOutOfBoundsException in translation code)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/I18n.java

    r3161 r3174  
    102102            i = pluralEval(num);
    103103            String[] trans = pstrings.get(ctx == null ? text : "_:"+ctx+"\n"+text);
    104             if(trans != null && trans.length >= i)
     104            if(trans != null && trans.length > i)
    105105                return trans[i];
    106106        }
Note: See TracChangeset for help on using the changeset viewer.