[mapserver-commits] r7972 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Sat Oct 11 08:34:58 EDT 2008


Author: tbonfort
Date: 2008-10-11 08:34:58 -0400 (Sat, 11 Oct 2008)
New Revision: 7972

Modified:
   trunk/mapserver/mapagg.cpp
Log:
use the scalefactor for offsets


Modified: trunk/mapserver/mapagg.cpp
===================================================================
--- trunk/mapserver/mapagg.cpp	2008-10-09 17:51:02 UTC (rev 7971)
+++ trunk/mapserver/mapagg.cpp	2008-10-11 12:34:58 UTC (rev 7972)
@@ -1782,13 +1782,13 @@
     AGGMapserverRenderer* ren = getAGGRenderer(image);
     polygon_adaptor *polygons;
     if(style->offsety==-99) {
-        offsetPolygon = msOffsetPolyline(p,style->offsetx,style->offsety);
+        offsetPolygon = msOffsetPolyline(p,ox,style->offsety);
     }
     if(offsetPolygon!=NULL) {
         polygons=new polygon_adaptor(offsetPolygon);
     } else {
         if(style->offsetx!=0 || style->offsety!=0) {
-            polygons = new offset_polygon_adaptor(p,style->offsetx,style->offsety);
+            polygons = new offset_polygon_adaptor(p,ox,oy);
         } else {
             polygons = new polygon_adaptor(p);
         }



More information about the mapserver-commits mailing list