mirror of https://github.com/GNOME/gimp.git
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:
parent
e81f857482
commit
694ad967a6
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue