range: Fix a copy-paste error
authorMatthias Clasen <mclasen@redhat.com>
Sat, 8 Apr 2023 23:50:16 +0000 (19:50 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 21 Apr 2023 07:13:50 +0000 (09:13 +0200)
This was showing up as the alpha popup in
the color editor not being positioned correctly.

gtk/gtkrange.c

index ebe4cb706bd2dc780e7b908562bcbce20fb701ac..87a78508a717474ef61e8ac394f22801a3c005c5 100644 (file)
@@ -1010,7 +1010,7 @@ gtk_range_get_slider_range (GtkRange *range,
   else
     {
       if (slider_start)
-        *slider_start = slider_bounds.origin.y;
+        *slider_start = slider_bounds.origin.x;
       if (slider_end)
         *slider_end = slider_bounds.origin.x + slider_bounds.size.width;
     }