mirror of https://github.com/GNOME/gimp.git
app: Issue #9490: limit the width of the palette preview
to GIMP_VIEWABLE_MAX_PREVIEW_SIZE in gimppaletteeditor.c
This commit is contained in:
parent
821711badb
commit
c9700680fe
|
@ -944,6 +944,8 @@ palette_editor_resize (GimpPaletteEditor *editor,
|
|||
if (! palette)
|
||||
return;
|
||||
|
||||
width = MIN (width, GIMP_VIEWABLE_MAX_PREVIEW_SIZE);
|
||||
|
||||
editor->zoom_factor = zoom_factor;
|
||||
editor->last_width = width;
|
||||
editor->col_width = width / (editor->columns + 1) - SPACING;
|
||||
|
|
Loading…
Reference in New Issue