[gimp/gimp-2-10] app: behave as if "show all" is disabled in GimpCanvasGrid when keeping padding



commit be2c6d139f113de23710824cb692eb48cb2b9d5a
Author: Ell <ell_se yahoo com>
Date:   Sun Sep 15 16:28:13 2019 +0300

    app: behave as if "show all" is disabled in GimpCanvasGrid when keeping padding

 app/display/gimpcanvasgrid.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/app/display/gimpcanvasgrid.c b/app/display/gimpcanvasgrid.c
index 3764f27244..23b46ee773 100644
--- a/app/display/gimpcanvasgrid.c
+++ b/app/display/gimpcanvasgrid.c
@@ -221,11 +221,11 @@ gimp_canvas_grid_draw (GimpCanvasItem *item,
   x2 = ceil  (dx2) + 1;
   y2 = ceil  (dy2) + 1;
 
-  if (! shell->show_all)
+  if (! gimp_display_shell_get_infinite_canvas (shell))
     {
       GeglRectangle bounds;
 
-      gimp_display_shell_scale_get_image_unrotated_bounding_box (
+      gimp_display_shell_scale_get_image_unrotated_bounds (
         shell,
         &bounds.x, &bounds.y, &bounds.width, &bounds.height);
 
@@ -349,7 +349,7 @@ gimp_canvas_grid_get_extents (GimpCanvasItem *item)
   if (! image)
     return NULL;
 
-  if (! shell->show_all)
+  if (! gimp_display_shell_get_infinite_canvas (shell))
     {
       
       gdouble x1, y1;


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