app: Issue #9490: limit the width of the palette preview

to GIMP_VIEWABLE_MAX_PREVIEW_SIZE in gimppaletteeditor.c
This commit is contained in:
Michael Natterer 2023-05-25 19:36:15 +02:00
parent 821711badb
commit c9700680fe
1 changed files with 2 additions and 0 deletions

View File

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