From 3dfa4cb2c4f49c6e69adec1dd2099e6b8fbdbe79 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Wed, 27 Apr 2016 12:28:11 +0200 Subject: [PATCH] Fix for alpha values --- Stream_support/include/CGAL/IO/File_scanner_OFF.h | 2 ++ 1 file changed, 2 insertions(+) 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