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
This commit is contained in:
Sven Neumann 1999-11-09 22:01:28 +00:00
parent 69bc75b042
commit cd65099a2a
3 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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);

View File

@ -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);