[mapserver-commits] r7358 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Wed Feb 6 14:37:15 EST 2008


Author: tbonfort
Date: 2008-02-06 14:37:15 -0500 (Wed, 06 Feb 2008)
New Revision: 7358

Modified:
   trunk/mapserver/mapagg.cpp
Log:
fix offsets on pixmap marker symbols (#2493)

Modified: trunk/mapserver/mapagg.cpp
===================================================================
--- trunk/mapserver/mapagg.cpp	2008-02-06 17:41:32 UTC (rev 7357)
+++ trunk/mapserver/mapagg.cpp	2008-02-06 19:37:15 UTC (rev 7358)
@@ -1,5 +1,5 @@
 /******************************************************************************
- * $Id:$
+ * $Id$
  *
  * Project:  MapServer
  * Purpose:  AGG rendering and other AGG related functions.
@@ -122,8 +122,6 @@
 typedef agg::rasterizer_outline <renderer_prim> rasterizer_outline;
 typedef agg::rasterizer_scanline_aa<> rasterizer_scanline;
 
-MS_CVSID("$Id$")
-
 ///apply line styling functions. applies the line joining and capping
 ///parameters from the symbolobj to the given stroke
 ///@param stroke the stroke to which we apply the styling
@@ -1208,7 +1206,7 @@
     break;    
     case(MS_SYMBOL_PIXMAP): {
         GDpixfmt img_pixf = loadSymbolPixmap(symbol);
-        ren->renderPixmapBGRA(img_pixf,p->x,p->y,angle_radians,d);
+        ren->renderPixmapBGRA(img_pixf,p->x+ox,p->y+oy,angle_radians,d);
     }
     break;    
     case(MS_SYMBOL_ELLIPSE): {



More information about the mapserver-commits mailing list