Merge branch 'master'

This commit is contained in:
David Capello 2016-05-03 12:43:51 -03:00
commit aededaaeab

View File

@ -53,8 +53,11 @@ Palette* load_gpl_file(const char *filename)
std::istringstream lineIn(line); std::istringstream lineIn(line);
// TODO add support to read the color name // TODO add support to read the color name
lineIn >> r >> g >> b; lineIn >> r >> g >> b;
if (lineIn.good())
pal->addEntry(rgba(r, g, b, 255)); if (lineIn.fail())
continue;
pal->addEntry(rgba(r, g, b, 255));
} }
return pal.release(); return pal.release();