From c9700680feeabf1509f1427b032e81466b8e50a2 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Thu, 25 May 2023 19:36:15 +0200 Subject: [PATCH] app: Issue #9490: limit the width of the palette preview to GIMP_VIEWABLE_MAX_PREVIEW_SIZE in gimppaletteeditor.c --- app/widgets/gimppaletteeditor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/widgets/gimppaletteeditor.c b/app/widgets/gimppaletteeditor.c index 249b53bdf3..2ad4a99efc 100644 --- a/app/widgets/gimppaletteeditor.c +++ b/app/widgets/gimppaletteeditor.c @@ -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;