gimp r28141 - in branches/gimp-2-6: . plug-ins/common



Author: neo
Date: Thu Mar 12 18:19:47 2009
New Revision: 28141
URL: http://svn.gnome.org/viewvc/gimp?rev=28141&view=rev

Log:
2009-03-12  Sven Neumann  <sven gimp org>

	Bug 573542 â blur plugin: bug in the first line

	* plug-ins/common/blur.c (blur_prepare_row): cast GimpPixelRgn.h
	to a signed integer.



Modified:
   branches/gimp-2-6/ChangeLog
   branches/gimp-2-6/plug-ins/common/blur.c

Modified: branches/gimp-2-6/plug-ins/common/blur.c
==============================================================================
--- branches/gimp-2-6/plug-ins/common/blur.c	(original)
+++ branches/gimp-2-6/plug-ins/common/blur.c	Thu Mar 12 18:19:47 2009
@@ -213,7 +213,7 @@
 {
   gint b;
 
-  y = CLAMP (y, 0, pixel_rgn->h - 1);
+  y = CLAMP (y, 0, (gint)pixel_rgn->h - 1);
 
   gimp_pixel_rgn_get_row (pixel_rgn, data, x, y, w);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]