Ignore:
Timestamp:
2015-09-14T22:44:28+02:00 (9 years ago)
Author:
simon04
Message:

fix #11686 - Error by uploading changeset with too long tag

Changeset tags table: limit key/value length to allowed maximum of API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/tagging/TagCellEditor.java

    r8510 r8760  
    3030    /**
    3131     * constructor
     32     * @param maxCharacters maximum number of characters allowed, 0 for unlimited
    3233     */
    33     public TagCellEditor() {
     34    public TagCellEditor(final int maxCharacters) {
    3435        editor = new AutoCompletingTextField(0, false);
     36        if (maxCharacters > 0) {
     37            editor.setMaxChars(maxCharacters);
     38        }
    3539        editor.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
    3640    }
Note: See TracChangeset for help on using the changeset viewer.