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;