diff --git a/Stream_support/include/CGAL/IO/File_scanner_OFF.h b/Stream_support/include/CGAL/IO/File_scanner_OFF.h index b8a1a77e64c..d4acd9bd8fc 100644 --- a/Stream_support/include/CGAL/IO/File_scanner_OFF.h +++ b/Stream_support/include/CGAL/IO/File_scanner_OFF.h @@ -570,6 +570,8 @@ public: else rgb[index] = static_cast(atoi(color_info.c_str())); index++; + if(index == 3) + break; } CGAL::Color color; //if there were only one number, fetch the color in the color map