[gimp/gimp-2-10] app: in GimpDashboard, don't show legend for groups with no meter



commit cb4e9b92bce0f5e86be74c5b70ab3530070d1d67
Author: Ell <ell_se yahoo com>
Date:   Wed May 8 03:58:09 2019 -0400

    app: in GimpDashboard, don't show legend for groups with no meter
    
    in GimpDashboard, don't show field legend colors in groups without
    a meter.
    
    (cherry picked from commit 8434ae42a3a9a18f0d31222bee400c17891cd218)

 app/widgets/gimpdashboard.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/app/widgets/gimpdashboard.c b/app/widgets/gimpdashboard.c
index 5afaa5426f..a4e00b15f6 100644
--- a/app/widgets/gimpdashboard.c
+++ b/app/widgets/gimpdashboard.c
@@ -2771,7 +2771,7 @@ gimp_dashboard_update_group (GimpDashboard *dashboard,
               n_rows++;
             }
 
-          if (variable_info->color.a)
+          if (group_info->has_meter && variable_info->color.a)
             {
               color_area = gimp_color_area_new (&variable_info->color,
                                                 GIMP_COLOR_AREA_FLAT, 0);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]