mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
Make address addable in the editor
Signed-off-by: map-per <map-per@gmx.de>
This commit is contained in:
@@ -433,6 +433,12 @@ bool EditableMapObject::ValidateHouseNumber(string const & houseNumber)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool EditableMapObject::CheckHouseNumberWhenIsAddress() const
|
||||
{
|
||||
// House number is mandatory for the address type. For other types it's optional.
|
||||
return !m_houseNumber.empty() || !m_types.Has(classif().GetTypeByReadableObjectName("building-address"));
|
||||
}
|
||||
|
||||
// static
|
||||
bool EditableMapObject::ValidateFlats(string const & flats)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user