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

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jul 27 04:18:55 PDT 2016


Author: annakrat
Date: 2016-07-27 04:18:55 -0700 (Wed, 27 Jul 2016)
New Revision: 69036

Modified:
   grass/trunk/display/d.legend/draw.c
Log:
d.legend: fix #3106

Modified: grass/trunk/display/d.legend/draw.c
===================================================================
--- grass/trunk/display/d.legend/draw.c	2016-07-24 23:40:29 UTC (rev 69035)
+++ grass/trunk/display/d.legend/draw.c	2016-07-27 11:18:55 UTC (rev 69036)
@@ -1343,8 +1343,10 @@
                 y0bg = y0 - txsiz;
 
 
-            D_use_color(colorbg);
-            D_box_abs(x0bg, y0bg, x1bg, y1bg);
+            if (colorbg != 0) {
+                D_use_color(colorbg);
+                D_box_abs(x0bg, y0bg, x1bg, y1bg);
+            }
 
             D_use_color(colorb);
             D_begin();



More information about the grass-commit mailing list