Changeset 17995 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2021-07-11T04:02:42+02:00 (3 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/BasicUploadSettingsPanel.java
r17898 r17995 411 411 if (!(e.getSource() instanceof ChangesetCommentModel)) return; 412 412 String newComment = ((ChangesetCommentModel) e.getSource()).getComment(); 413 if (!destination.getText(). equals(newComment)) {413 if (!destination.getText().trim().equals(newComment)) { 414 414 destination.setText(newComment); 415 415 } -
trunk/src/org/openstreetmap/josm/gui/io/ChangesetCommentModel.java
r16643 r17995 25 25 public void setComment(String comment) { 26 26 String oldValue = this.comment; 27 this.comment = comment == null ? "" : comment ;27 this.comment = comment == null ? "" : comment.trim(); 28 28 if (!Objects.equals(oldValue, this.comment)) { 29 29 fireStateChanged();
Note:
See TracChangeset
for help on using the changeset viewer.