Commit 5cc12582 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

only write a .presets file if the presets container is not empty.

2006-12-06  Sven Neumann  <sven@gimp.org>

	* app/tools/gimp-tools.c (gimp_tools_save): only write a
.presets
	file if the presets container is not empty.
parent 8aa1c19e
2006-12-06 Sven Neumann <sven@gimp.org>
* app/tools/gimp-tools.c (gimp_tools_save): only write a .presets
file if the presets container is not empty.
2006-12-06 Sven Neumann <sven@gimp.org>
* plug-ins/common/xpm.c: applied patch by Min Sik Kim. Fixes build
......
......@@ -378,7 +378,8 @@ gimp_tools_save (Gimp *gimp,
if (save_tool_options && (! tool_options_deleted || always_save))
gimp_tool_options_serialize (tool_info->tool_options, NULL, NULL);
if (tool_info->options_presets)
if (tool_info->options_presets &&
gimp_container_num_children (tool_info->options_presets) > 0)
{
gchar *header;
gchar *footer;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment