gimp r25851 - in branches/gimp-2-4: . plug-ins/common



Author: neo
Date: Thu May 29 07:11:36 2008
New Revision: 25851
URL: http://svn.gnome.org/viewvc/gimp?rev=25851&view=rev

Log:
2008-05-29  Sven Neumann  <sven gimp org>

	Merged from trunk:

	* plug-ins/common/sel_gauss.c (matrixmult_mmx): avoid division 
by
	zero in the grayscale code path (bug #529280).



Modified:
   branches/gimp-2-4/ChangeLog
   branches/gimp-2-4/plug-ins/common/sel_gauss.c

Modified: branches/gimp-2-4/plug-ins/common/sel_gauss.c
==============================================================================
--- branches/gimp-2-4/plug-ins/common/sel_gauss.c	(original)
+++ branches/gimp-2-4/plug-ins/common/sel_gauss.c	Thu May 29 07:11:36 2008
@@ -454,7 +454,8 @@
                   fr += d * (gushort) rowfact;
                 }
 
-              dest[dix] = r / fr;
+              if (fr)
+                dest[dix] = r / fr;
             }
           else
             {



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