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.
This commit is contained in:
parent
637def4d40
commit
7cc7bf4c05
2 changed files with 13 additions and 2 deletions
11
ChangeLog
11
ChangeLog
|
|
@ -1,8 +1,15 @@
|
|||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue