forked from organicmaps/organicmaps
Fixed GEOM_UNKNOWN warning
This commit is contained in:
parent
4b7081f127
commit
e1fb46711b
2 changed files with 6 additions and 0 deletions
|
@ -109,6 +109,8 @@ uint8_t FeatureParams::GetHeader() const
|
|||
header |= HEADER_GEOM_AREA;
|
||||
if (!house.IsEmpty()) header |= HEADER_HAS_ADDINFO;
|
||||
break;
|
||||
default:
|
||||
ASSERT(false, ("Undefined geometry type"));
|
||||
}
|
||||
|
||||
return header;
|
||||
|
|
|
@ -76,6 +76,8 @@ struct FeatureParamsBase
|
|||
case feature::GEOM_AREA:
|
||||
house.Write(sink);
|
||||
break;
|
||||
default:
|
||||
ASSERT(false, ("Undefined geometry type"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -102,6 +104,8 @@ struct FeatureParamsBase
|
|||
case feature::GEOM_AREA:
|
||||
house.Read(src);
|
||||
break;
|
||||
default:
|
||||
ASSERT(false, ("Undefined geometry type"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue