kopia lustrzana https://github.com/JOSM/MapWithAI
Revert "Ensure that the counter for unique ids is only ever advanced once"
This reverts commit 68a81a1e4e
.
pull/1/head
rodzic
40c7f3d59d
commit
4666a5cff1
|
@ -36,10 +36,7 @@ public class BoundingBoxMapWithAIDownloader extends BoundingBoxDownloader {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected DataSet parseDataSet(InputStream source, ProgressMonitor progressMonitor) throws IllegalDataException {
|
protected DataSet parseDataSet(InputStream source, ProgressMonitor progressMonitor) throws IllegalDataException {
|
||||||
DataSet ds;
|
DataSet ds = OsmReaderCustom.parseDataSet(source, progressMonitor, true);
|
||||||
synchronized (BoundingBoxMapWithAIDownloader.class) {
|
|
||||||
ds = OsmReaderCustom.parseDataSet(source, progressMonitor, true);
|
|
||||||
}
|
|
||||||
GetDataRunnable.addMapWithAISourceTag(ds, MapWithAIPreferenceHelper.getMapWithAIUrl().stream()
|
GetDataRunnable.addMapWithAISourceTag(ds, MapWithAIPreferenceHelper.getMapWithAIUrl().stream()
|
||||||
.filter(map -> map.getOrDefault("url", "no-url").equals(url))
|
.filter(map -> map.getOrDefault("url", "no-url").equals(url))
|
||||||
.map(map -> map.getOrDefault("source", MapWithAIPlugin.NAME)).findFirst().orElse(MapWithAIPlugin.NAME));
|
.map(map -> map.getOrDefault("source", MapWithAIPlugin.NAME)).findFirst().orElse(MapWithAIPlugin.NAME));
|
||||||
|
|
Ładowanie…
Reference in New Issue