Changeset 9446 in josm for trunk/src/org
- Timestamp:
- 2016-01-14T18:18:19+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/OrthogonalizeAction.java
r9230 r9446 599 599 } 600 600 601 /**602 * Don't check, if the current selection is suited for orthogonalization.603 * Instead, show a usage dialog, that explains, why it cannot be done.604 */605 601 @Override 606 602 protected void updateEnabledState() { 607 setEnabled(getCurrentDataSet() != null); 603 setEnabled(getCurrentDataSet() != null && !getCurrentDataSet().getSelected().isEmpty()); 604 } 605 606 @Override 607 protected void updateEnabledState(Collection<? extends OsmPrimitive> selection) { 608 setEnabled(selection != null && !selection.isEmpty()); 608 609 } 609 610 }
Note:
See TracChangeset
for help on using the changeset viewer.