diff --git a/app/src/main/java/de/westnordost/streetcomplete/util/ktx/Element.kt b/app/src/main/java/de/westnordost/streetcomplete/util/ktx/Element.kt index 08371e2d7e..751783a0f5 100644 --- a/app/src/main/java/de/westnordost/streetcomplete/util/ktx/Element.kt +++ b/app/src/main/java/de/westnordost/streetcomplete/util/ktx/Element.kt @@ -35,8 +35,11 @@ fun Element.isArea(): Boolean = when (this) { else -> false } +/** An element is only splittable if it is a way that is either not closed or neither an area + * nor a roundabout */ fun Element.isSplittable(): Boolean = when (this) { - is Way -> !isClosed || !IS_AREA_EXPRESSION.matches(this) + // see #5372 for as to why junction=roundabout is not splittable + is Way -> !isClosed || (!IS_AREA_EXPRESSION.matches(this) && tags["junction"] != "roundabout") else -> false }