Commit 90a024be authored by Ell's avatar Ell

app: improve spinscale target calculation

So pedantic... :)
parent 8d909998
......@@ -563,12 +563,12 @@ gimp_spin_scale_get_target (GtkWidget *widget,
pango_layout_get_pixel_extents (gtk_entry_get_layout (GTK_ENTRY (widget)),
NULL, &logical);
if (x > layout_x && x < layout_x + logical.width &&
y > layout_y && y < layout_y + logical.height)
if (x >= layout_x && x < layout_x + logical.width &&
y >= layout_y && y < layout_y + logical.height)
{
return TARGET_NUMBER;
}
else if (y > allocation.height / 2)
else if (y >= allocation.height / 2)
{
return TARGET_LOWER;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment