[mapserver-commits] r12844 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Mon Dec 5 07:35:31 EST 2011


Author: tbonfort
Date: 2011-12-05 04:35:31 -0800 (Mon, 05 Dec 2011)
New Revision: 12844

Modified:
   trunk/mapserver/mapcairo.c
Log:
div by 0 typo


Modified: trunk/mapserver/mapcairo.c
===================================================================
--- trunk/mapserver/mapcairo.c	2011-12-05 12:32:04 UTC (rev 12843)
+++ trunk/mapserver/mapcairo.c	2011-12-05 12:35:31 UTC (rev 12844)
@@ -985,7 +985,7 @@
       b=rb->data.rgba.b+row*rb->data.rgba.row_step;
       a=rb->data.rgba.a+row*rb->data.rgba.row_step;
       for(col=0;col<rb->width;col++) {
-         if(*a < 255) {
+         if(*a && *a < 255) {
             double da = *a/255.0;
             *r/=da;
             *g/=da;



More information about the mapserver-commits mailing list