sources and destinations can be empty actually
This commit is contained in:
parent
29a72a9e1a
commit
49fff1d93f
@ -36,8 +36,8 @@ struct TableParameters : public BaseParameters
|
||||
if (!BaseParameters::IsValid())
|
||||
return false;
|
||||
|
||||
// Distance Table makes only sense with 2+ coordinates and 1+ sources and 1+ destinations
|
||||
if (coordinates.size() < 2 || sources.size() < 1 || destinations.size() < 1)
|
||||
// Distance Table makes only sense with 2+ coodinates
|
||||
if (coordinates.size() < 2)
|
||||
return false;
|
||||
|
||||
// 1/ The user is able to specify duplicates in srcs and dsts, in that case it's her fault
|
||||
|
Loading…
Reference in New Issue
Block a user