Changeset 35506 in osm for applications/editors


Ignore:
Timestamp:
2020-07-09T22:06:21+02:00 (4 years ago)
Author:
raupach
Message:

fix #josm13231 - support for larger increment (-10/+10)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/HouseNumberTaggingTool/src/org/openstreetmap/josm/plugins/housenumbertool/TagDialog.java

    r34517 r35506  
    7171        "greenhouse", "hangar", "hut", "roof", "shed", "stable"};
    7272
    73     private static final int FPS_MIN = -2;
    74     private static final int FPS_MAX =  2;
     73    private static final int FPS_MIN = -10;
     74    private static final int FPS_MAX =  10;
    7575
    7676    private static final Logger LOGGER = Logger.getLogger(TagDialog.class.getName());
     
    9898    private JComboBox<String> building;
    9999    private JRadioButton streetRadio;
    100     private JRadioButton placeRadio;
    101100
    102101    /**
     
    112111        JPanel editPanel = createContentPane();
    113112
     113        setPreferredSize(new Dimension(700, 300));
     114        setMinimumSize(new Dimension(700, 300));
     115
    114116        setContent(editPanel);
    115117        setButtonIcons("ok", "cancel");
     
    277279        editPanel.add(streetRadio, c);
    278280
    279         placeRadio = new JRadioButton("addr:place");
     281        JRadioButton placeRadio = new JRadioButton("addr:place");
    280282        placeRadio.setToolTipText(TAG_STREET_OR_PLACE);
    281283        placeRadio.setSelected(!dto.isTagStreet());
     
    290292        ButtonGroup g = new ButtonGroup();
    291293        g.add( streetRadio );
    292         g.add( placeRadio );
     294        g.add(placeRadio);
    293295
    294296        street = new AutoCompletingComboBox();
     
    364366                if (m.matches()) {
    365367                    String prefix = m.group(1) != null ? m.group(1) : "";
    366                     int n = Integer.valueOf(m.group(2)) + increment;
     368                    int n = Integer.parseInt(m.group(2)) + increment;
    367369                    String suffix = m.group(3) != null ? m.group(3) : "";
    368370                    return prefix + n + suffix;
Note: See TracChangeset for help on using the changeset viewer.