[GRASS-SVN] r70897 - grass/trunk/display/d.legend.vect

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Apr 18 20:10:16 PDT 2017


Author: annakrat
Date: 2017-04-18 20:10:16 -0700 (Tue, 18 Apr 2017)
New Revision: 70897

Modified:
   grass/trunk/display/d.legend.vect/draw.c
Log:
d.legend.vect: fix drawing symbols with PNG driver

Modified: grass/trunk/display/d.legend.vect/draw.c
===================================================================
--- grass/trunk/display/d.legend.vect/draw.c	2017-04-18 15:54:50 UTC (rev 70896)
+++ grass/trunk/display/d.legend.vect/draw.c	2017-04-19 03:10:16 UTC (rev 70897)
@@ -90,11 +90,6 @@
             if (((strcmp(type_str,"point") != 0) && (strcmp(type_str, "centroid") != 0)) || size < 0) {
                 size = symb_size;
             }
-            Symb = S_read(symb_name);
-            if (Symb == NULL)
-                G_warning(_("Cannot read symbol"));
-            else
-                S_stroke(Symb, size, 0, 0);
             symb_w = size;
 
             if (symb_w > def_symb_w)
@@ -230,7 +225,6 @@
                 maxlblw = row_w;
 
             if (! do_bg) {
-                S_stroke(Symb, size, 0, 0);
                 x = x0 + offs_x + def_symb_w/2.;
                 y = y0 + offs_y - symb_h/2;
                 D_line_width(line_width);



More information about the grass-commit mailing list