Skip to content

Commit ce92381

Browse files
committed
JsonImageDetailsDecoder: Fix JOSM #21914
Signed-off-by: Taylor Smock <tsmock@fb.com>
1 parent 940edd5 commit ce92381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/openstreetmap/josm/plugins/mapillary/utils/api/JsonImageDetailsDecoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ private static Pair<String, VectorNode> decodeImageInfo(@Nullable final JsonObje
113113
// Force the dataset to recache the location
114114
VectorDataSetUtils.tryWrite(data, () -> {
115115
if (data.containsNode(image)) {
116-
data.removePrimitive(image);
116+
VectorDataSetUtils.removeObject(image);
117117
}
118118
data.addPrimitive(image);
119119
if (Optional.ofNullable(MainApplication.getMap())

0 commit comments

Comments
 (0)