multipolygons shouldn't have non-Way members
[potlatch2.git] / net / systemeD / halcyon / WayUI.as
index 949a8578296aa76e092c898c5da0dda2279b28c3..a7a513fdf4bb9fc27a550ffb4fdc1f42bf2bd886 100644 (file)
@@ -264,7 +264,7 @@ package net.systemeD.halcyon {
                        var multis:Array=entity.findParentRelationsOfType('multipolygon','outer');
                        var inners:Array=[];
                        for each (var m:Relation in multis) {
-                               inners=inners.concat(m.findMembersByRole('inner'));
+                               inners=inners.concat(m.findMembersByRole('inner',Way));
                        }
 
                        for each (var sublayer:Number in styleList.sublayers) {