summaryrefslogtreecommitdiff
path: root/src/common/include/gudhi/Off_reader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/include/gudhi/Off_reader.h')
-rw-r--r--src/common/include/gudhi/Off_reader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/include/gudhi/Off_reader.h b/src/common/include/gudhi/Off_reader.h
index e29218d8..618d1b4d 100644
--- a/src/common/include/gudhi/Off_reader.h
+++ b/src/common/include/gudhi/Off_reader.h
@@ -7,7 +7,7 @@
*
* Author(s): David Salinas
*
- * Copyright (C) 2014 INRIA Sophia Antipolis-Méditerranée (France)
+ * Copyright (C) 2014 INRIA Sophia Antipolis-Méditerranée (France)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -121,7 +121,7 @@ private:
if(!goto_next_uncomment_line(line)) return false;
std::istringstream iss(line);
- if(is_off_file){
+ if((is_off_file) && (!is_noff_file)) {
off_info_.dim = 3;
if(!(iss >> off_info_.num_vertices >> off_info_.num_faces >> off_info_.num_edges)){
std::cerr << "incorrect number of vertices/faces/edges\n";