Changeset 7666 in josm for trunk


Ignore:
Timestamp:
2014-10-28T21:48:28+01:00 (10 years ago)
Author:
stoecker
Message:

fix for server shortcut parser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/CreateMultipolygonAction.java

    r7423 r7666  
    6565    public CreateMultipolygonAction(final boolean update) {
    6666        super(getName(update), "multipoly_create", getName(update),
    67                 update  ? Shortcut.registerShortcut("tools:multipoly_update", tr("Tool: {0}", getName(true)), KeyEvent.VK_B, Shortcut.CTRL_SHIFT)
    68                         : Shortcut.registerShortcut("tools:multipoly_create", tr("Tool: {0}", getName(false)), KeyEvent.VK_B, Shortcut.CTRL),
     67                /* atleast three lines for each shortcut or the server extractor fails */
     68                update  ? Shortcut.registerShortcut("tools:multipoly_update",
     69                            tr("Tool: {0}", getName(true)),
     70                            KeyEvent.VK_B, Shortcut.CTRL_SHIFT)
     71                        : Shortcut.registerShortcut("tools:multipoly_create",
     72                            tr("Tool: {0}", getName(false)),
     73                            KeyEvent.VK_B, Shortcut.CTRL),
    6974                true, update ? "multipoly_update" : "multipoly_create", true);
    7075        this.update = update;
Note: See TracChangeset for help on using the changeset viewer.