Commit cd65099a authored by Sven Neumann's avatar Sven Neumann

take margin into account when deciding if popping up a preview is

       * app/brush_select.c: take margin into account when deciding if
        popping up a preview is necessary

--Sven
parent 69bc75b0
Tue Nov 9 22:57:13 MET 1999 Sven Neumann <sven@gimp.org>
* app/brush_select.c: take margin into account when deciding if
popping up a preview is necessary
Tue Nov 9 21:15:26 GMT 1999 Andy Thomas <alt@gimp.org>
* app/lc_dialog.c
......
......@@ -1556,8 +1556,8 @@ brush_select_events (GtkWidget *widget,
}
/* Show the brush popup window if the brush is too large */
if (brush->mask->width > bsp->cell_width ||
brush->mask->height > bsp->cell_height ||
if (brush->mask->width > bsp->cell_width - 2 * MARGIN_WIDTH ||
brush->mask->height > bsp->cell_height - 2 * MARGIN_HEIGHT ||
GIMP_IS_REALLY_A_BRUSH_PIPE (brush))
{
brush_popup_open (bsp, bevent->x, bevent->y, brush);
......
......@@ -1556,8 +1556,8 @@ brush_select_events (GtkWidget *widget,
}
/* Show the brush popup window if the brush is too large */
if (brush->mask->width > bsp->cell_width ||
brush->mask->height > bsp->cell_height ||
if (brush->mask->width > bsp->cell_width - 2 * MARGIN_WIDTH ||
brush->mask->height > bsp->cell_height - 2 * MARGIN_HEIGHT ||
GIMP_IS_REALLY_A_BRUSH_PIPE (brush))
{
brush_popup_open (bsp, bevent->x, bevent->y, brush);
......
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