Index: mapagg.cpp
===================================================================
--- mapagg.cpp	(revision 9921)
+++ mapagg.cpp	(working copy)
@@ -1106,6 +1106,9 @@
         int pw = MS_NINT(symbol->sizex*d)+1;
         int ph = MS_NINT(symbol->sizey*d)+1;
 
+        if (pw <= 1) pw = 1;
+        if (ph <= 1) ph = 1;
+
         if((pw <= 1) && (ph <= 1)) { // No sense using a tile, just fill solid 
             ren->renderPathSolid(circle,agg_color,agg_ocolor,style->width);
         }
@@ -1143,6 +1146,9 @@
         int pw = MS_NINT(symbol->sizex*d);    
         int ph = MS_NINT(symbol->sizey*d);
 
+        if (pw <= 1) pw = 1;
+        if (ph <= 1) ph = 1;
+
         if((pw <= 1) && (ph <= 1)) { // No sense using a tile, just fill solid
             ren->renderPathSolid(circle,agg_color,agg_ocolor,width);
             return;
@@ -1695,6 +1701,8 @@
             int pw =(int) ceil(symbol->sizex*d);    
             int ph =(int) ceil(symbol->sizey*d);
             
+            if (pw <= 1) pw = 1;
+            if (ph <= 1) ph = 1;
             
             if((pw <= 1) && (ph <= 1)) { // No sense using a tile, just draw a simple line
                 ren->renderPolyline(*lines,*color,size,0,NULL);
@@ -1865,6 +1873,10 @@
 
             int pw = MS_NINT(symbol->sizex*d);    
             int ph = MS_NINT(symbol->sizey*d);
+
+            if (pw <= 1) pw = 1;
+            if (ph <= 1) ph = 1;
+
             if((pw <= 1) && (ph <= 1)) {
                 //use a solid fill if the symbol is too small
                 ren->renderPathSolid(*polygons,agg_color,agg_ocolor,width);
@@ -1911,6 +1923,10 @@
             double d = size/symbol->sizey; /* size ~ height in pixels */
             int pw = MS_NINT(symbol->sizex*d);
             int ph = MS_NINT(symbol->sizey*d);
+
+            if (pw <= 1) pw = 1;
+            if (ph <= 1) ph = 1;
+
             if((ph <= 1) && (pw <= 1)) { /* No sense using a tile, just fill solid */
                 ren->renderPathSolid(*polygons,agg_color,agg_ocolor,width);
             }

