mirror of https://github.com/CGAL/cgal
Fix example
This commit is contained in:
parent
f1dceb79ee
commit
99a16d2c8f
|
|
@ -41,7 +41,7 @@ bool read_vertices(const PolyMesh& mesh,
|
||||||
Vd_array& fixed_vertices)
|
Vd_array& fixed_vertices)
|
||||||
{
|
{
|
||||||
std::string str = filename;
|
std::string str = filename;
|
||||||
if(str.substr(str.length() - 14) != ".selection.txt") {
|
if( (str.length()) < 14 || (str.substr(str.length() - 14) != ".selection.txt") ) {
|
||||||
std::cerr << "Error: vertices must be given by a *.selection.txt file" << std::endl;
|
std::cerr << "Error: vertices must be given by a *.selection.txt file" << std::endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue