skip empty lines.

2008-03-19  Sven Neumann  <sven@gimp.org>

	* app/core/gimppalette-load.c (gimp_palette_load): skip empty lines.

svn path=/trunk/; revision=25126
This commit is contained in:
Sven Neumann 2008-03-19 17:19:37 +00:00 committed by Sven Neumann
parent e81f857482
commit 694ad967a6
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2008-03-19 Sven Neumann <sven@gimp.org>
* app/core/gimppalette-load.c (gimp_palette_load): skip empty lines.
2008-03-19 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell.c

View File

@ -174,7 +174,7 @@ gimp_palette_load (const gchar *filename,
while (! feof (file))
{
if (str[0] != '#')
if (str[0] != '#' && str[0] != '\n')
{
tok = strtok (str, " \t");
if (tok)