app: fix gimp_brush_mipmap_get_memsize()
Don't include the main mask/pixmap buffer size -- it's already
counted in gimp_brush_get_memsize().
(cherry picked from commit 30e925065f
)
This commit is contained in:
@ -483,7 +483,7 @@ gimp_brush_mipmap_get_memsize (GimpBrush *brush)
|
|||||||
{
|
{
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
for (i = 0;
|
for (i = 1;
|
||||||
i < brush->priv->n_horz_mipmaps * brush->priv->n_vert_mipmaps;
|
i < brush->priv->n_horz_mipmaps * brush->priv->n_vert_mipmaps;
|
||||||
i++)
|
i++)
|
||||||
{
|
{
|
||||||
@ -495,7 +495,7 @@ gimp_brush_mipmap_get_memsize (GimpBrush *brush)
|
|||||||
{
|
{
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
for (i = 0;
|
for (i = 1;
|
||||||
i < brush->priv->n_horz_mipmaps * brush->priv->n_vert_mipmaps;
|
i < brush->priv->n_horz_mipmaps * brush->priv->n_vert_mipmaps;
|
||||||
i++)
|
i++)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user