[GRASS-SVN] r70899 - grass/branches/releasebranch_7_2/display/d.legend.vect

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 19 08:22:56 PDT 2017


Author: annakrat
Date: 2017-04-19 08:22:56 -0700 (Wed, 19 Apr 2017)
New Revision: 70899

Modified:
   grass/branches/releasebranch_7_2/display/d.legend.vect/draw.c
Log:
d.legend.vect: fix drawing symbols with PNG driver (merge from trunk, r70897)

Modified: grass/branches/releasebranch_7_2/display/d.legend.vect/draw.c
===================================================================
--- grass/branches/releasebranch_7_2/display/d.legend.vect/draw.c	2017-04-19 04:06:41 UTC (rev 70898)
+++ grass/branches/releasebranch_7_2/display/d.legend.vect/draw.c	2017-04-19 15:22:56 UTC (rev 70899)
@@ -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