sources and destinations can be empty actually

This commit is contained in:
Patrick Niklaus 2016-03-02 16:38:35 +01:00
parent 29a72a9e1a
commit 49fff1d93f

View File

@ -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