Commit 7cc7bf4c authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer

initialize renderer->columns to != 0 to avoid floating point exceptions on

2005-08-27  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpviewrendererpalette.c
	(gimp_view_renderer_palette_init): initialize renderer->columns
	to != 0 to avoid floating point exceptions on initial layout
	calculation. Fixes bug #314663.
parent 637def4d
2005-08-27 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpviewrendererpalette.c
(gimp_view_renderer_palette_init): initialize renderer->columns
to != 0 to avoid floating point exceptions on initial layout
calculation. Fixes bug #314663.
2005-08-27 Michael Schumacher <schumaml@cvs.gnome.org>
* plug-ins/common/gradmap.c: applied a patch by David Gowers,
which makes palette-map behave the same as gradient-map. Fixes bug
313458.
which makes palette-map behave the same as gradient-map.
Fixes bug #313458.
2005-08-27 Sven Neumann <sven@gimp.org>
......
......@@ -35,6 +35,9 @@
#include "gimpviewrendererpalette.h"
#define COLUMNS 16
static void gimp_view_renderer_palette_class_init (GimpViewRendererPaletteClass *klass);
static void gimp_view_renderer_palette_init (GimpViewRendererPalette *renderer);
......@@ -93,6 +96,7 @@ gimp_view_renderer_palette_init (GimpViewRendererPalette *renderer)
{
renderer->cell_size = 4;
renderer->draw_grid = FALSE;
renderer->columns = COLUMNS;
}
static void
......
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