Ignore:
Timestamp:
2012-02-13T22:15:10+01:00 (12 years ago)
Author:
stoecker
Message:

small cleanups

File:
1 edited

Legend:

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

    r4926 r4927  
    450450
    451451    private static int findModifier(int group, Integer modifier) {
    452         Integer defaultModifier = getGroupModifier(group + GROUPS_DEFAULT);
     452        Integer defaultModifier = getGroupModifier(group);
    453453        if(modifier != null) {
    454454            if(modifier == SHIFT_DEFAULT) {
     
    484484            conflictsWith = potentialShortcut;
    485485            defaultModifier = getGroupModifier(requestedGroup + GROUPS_ALT1);
    486             if (defaultModifier == null) { // garbage in, no shortcurt out
     486            if (defaultModifier == null) { // garbage in, no shortcut out
    487487                defaultModifier = getGroupModifier(GROUP_NONE + GROUPS_DEFAULT);
    488488            }
     
    490490            if (potentialShortcut != null) {
    491491                defaultModifier = getGroupModifier(requestedGroup + GROUPS_ALT2);
    492                 if (defaultModifier == null) { // garbage in, no shortcurt out
     492                if (defaultModifier == null) { // garbage in, no shortcut out
    493493                    defaultModifier = getGroupModifier(GROUP_NONE + GROUPS_DEFAULT);
    494494                }
Note: See TracChangeset for help on using the changeset viewer.