mirror of https://github.com/GNOME/gimp.git
initialize width and height to zero. Fixes bug #446005.
2007-06-11 Sven Neumann <sven@gimp.org> * app/widgets/gimpviewrenderer.c (gimp_view_renderer_init): initialize width and height to zero. Fixes bug #446005. svn path=/trunk/; revision=22757
This commit is contained in:
parent
54caf4fbd4
commit
13e518b138
|
@ -1,3 +1,8 @@
|
||||||
|
2007-06-11 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
|
* app/widgets/gimpviewrenderer.c (gimp_view_renderer_init):
|
||||||
|
initialize width and height to zero. Fixes bug #446005.
|
||||||
|
|
||||||
2007-06-11 Sven Neumann <sven@gimp.org>
|
2007-06-11 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* app/core/gimpimage-preview.c: don't disable image previews when
|
* app/core/gimpimage-preview.c: don't disable image previews when
|
||||||
|
|
|
@ -128,8 +128,8 @@ gimp_view_renderer_init (GimpViewRenderer *renderer)
|
||||||
renderer->viewable_type = G_TYPE_NONE;
|
renderer->viewable_type = G_TYPE_NONE;
|
||||||
renderer->viewable = NULL;
|
renderer->viewable = NULL;
|
||||||
|
|
||||||
renderer->width = 8;
|
renderer->width = 0;
|
||||||
renderer->height = 8;
|
renderer->height = 0;
|
||||||
renderer->border_width = 0;
|
renderer->border_width = 0;
|
||||||
renderer->dot_for_dot = TRUE;
|
renderer->dot_for_dot = TRUE;
|
||||||
renderer->is_popup = FALSE;
|
renderer->is_popup = FALSE;
|
||||||
|
@ -951,21 +951,24 @@ gimp_view_render_to_buffer (TempBuf *temp_buf,
|
||||||
gint dest_rowstride,
|
gint dest_rowstride,
|
||||||
gint dest_bytes)
|
gint dest_bytes)
|
||||||
{
|
{
|
||||||
guchar *src, *s;
|
const guchar *src, *s;
|
||||||
guchar *cb;
|
guchar *cb;
|
||||||
guchar *pad_buf;
|
guchar *pad_buf;
|
||||||
gint a;
|
gint a;
|
||||||
gint i, j, b;
|
gint i, j, b;
|
||||||
gint x1, y1, x2, y2;
|
gint x1, y1, x2, y2;
|
||||||
gint rowstride;
|
gint rowstride;
|
||||||
gboolean color;
|
gboolean color;
|
||||||
gboolean has_alpha;
|
gboolean has_alpha;
|
||||||
gboolean render_composite;
|
gboolean render_composite;
|
||||||
gint red_component;
|
gint red_component;
|
||||||
gint green_component;
|
gint green_component;
|
||||||
gint blue_component;
|
gint blue_component;
|
||||||
gint alpha_component;
|
gint alpha_component;
|
||||||
gint offset;
|
gint offset;
|
||||||
|
|
||||||
|
g_return_if_fail (temp_buf != NULL);
|
||||||
|
g_return_if_fail (dest_buffer != NULL);
|
||||||
|
|
||||||
/* Here are the different cases this functions handles correctly:
|
/* Here are the different cases this functions handles correctly:
|
||||||
* 1) Offset temp_buf which does not necessarily cover full image area
|
* 1) Offset temp_buf which does not necessarily cover full image area
|
||||||
|
|
Loading…
Reference in New Issue