Explicitly mark fall-throughs

This commit is contained in:
Tim Schaub
2016-01-04 20:44:25 -07:00
parent 54df314936
commit 932bf4deb3

View File

@@ -557,6 +557,7 @@ ol.format.GPX.writeWptType_ = function(node, coordinate, objectStack) {
if (coordinate[3] !== 0) {
properties['time'] = coordinate[3];
}
// fall through
case ol.geom.GeometryLayout.XYZ:
if (coordinate[2] !== 0) {
properties['ele'] = coordinate[2];