Changeset 18768 in josm
- Timestamp:
- 2023-06-22T23:12:56+02:00 (17 months ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/SelectAction.java
r18767 r18768 786 786 startEN = currentEN; // drag can continue after scaling/rotation 787 787 788 if ( mode != Mode.ROTATE && mode != Mode.SCALE|| SwingUtilities.isRightMouseButton(mouseEvent)) {788 if ((mode != Mode.ROTATE && mode != Mode.SCALE) || SwingUtilities.isRightMouseButton(mouseEvent)) { 789 789 return false; 790 790 } -
trunk/src/org/openstreetmap/josm/gui/dialogs/OsmIdSelectionDialog.java
r18208 r18768 30 30 import org.openstreetmap.josm.data.osm.SimplePrimitiveId; 31 31 import org.openstreetmap.josm.gui.ExtendedDialog; 32 import org.openstreetmap.josm.gui.Notification; 32 33 import org.openstreetmap.josm.gui.datatransfer.ClipboardUtils; 33 34 import org.openstreetmap.josm.gui.widgets.HistoryComboBox; … … 222 223 String buf = ClipboardUtils.getClipboardStringContent(); 223 224 if (Utils.isEmpty(buf)) return; 224 if (buf.length() > Config.getPref().getInt("downloadprimitive.max-autopaste-length", 2000)) return; 225 final int maxPasteLength = Config.getPref().getInt("downloadprimitive.max-autopaste-length", 2000); 226 if (buf.length() > maxPasteLength) { 227 new Notification(tr("Clipboard has more than {0} characters. Not auto-pasting.\n" + 228 "You may want to use Overpass instead.", maxPasteLength)) 229 .setIcon(JOptionPane.WARNING_MESSAGE) 230 .show(); 231 return; 232 } 225 233 final List<SimplePrimitiveId> ids = SimplePrimitiveId.fuzzyParse(buf); 226 234 if (!ids.isEmpty()) {
Note:
See TracChangeset
for help on using the changeset viewer.