- Timestamp:
- 2013-12-04T21:40:03+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/upload/ValidateUploadHook.java
r6331 r6436 23 23 import org.openstreetmap.josm.gui.ExtendedDialog; 24 24 import org.openstreetmap.josm.gui.dialogs.validator.ValidatorTreePanel; 25 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 25 26 import org.openstreetmap.josm.gui.preferences.ValidatorPreference; 26 27 import org.openstreetmap.josm.gui.widgets.HtmlPanel; … … 71 72 } 72 73 tests = null; 74 OsmDataLayer editLayer = Main.main.getEditLayer(); 75 editLayer.validationErrors.clear(); 76 editLayer.validationErrors.addAll(errors); 73 77 Main.map.validatorDialog.tree.setErrors(errors); 74 78 if (errors == null || errors.isEmpty()) -
trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
r6361 r6436 374 374 hasFixes = hasFixes || error.isFixable(); 375 375 if (addSelected) { 376 // sel.addAll(error.getPrimitives()); // was selecting already deleted primitives! see #6640377 376 sel.addAll(error.getSelectablePrimitives()); 378 377 } -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r6333 r6436 99 99 private int highlightUpdateCount; 100 100 101 public List<TestError> validationErrors = new ArrayList<TestError>(); 101 /** 102 * List of validation errors in this layer. 103 * @since 3669 104 */ 105 public final List<TestError> validationErrors = new ArrayList<TestError>(); 102 106 103 107 protected void setRequiresSaveToFile(boolean newValue) {
Note:
See TracChangeset
for help on using the changeset viewer.