mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 09:27:59 +00:00
Fix palette-related segfault with Gtk<3.
This was introduced in ca9cd983e1
.
This commit is contained in:
parent
ec23a6b5f4
commit
d3249671a2
@ -2590,7 +2590,7 @@ static void gtkwin_palette_set(TermWin *tw, unsigned start, unsigned ncolours,
|
||||
#if !GTK_CHECK_VERSION(3,0,0)
|
||||
{
|
||||
gboolean success[OSC4_NCOLOURS];
|
||||
gdk_colormap_alloc_colors(inst->colmap + start, inst->cols + start,
|
||||
gdk_colormap_alloc_colors(inst->colmap, inst->cols + start,
|
||||
ncolours, false, true, success);
|
||||
for (unsigned i = 0; i < ncolours; i++) {
|
||||
if (!success[i])
|
||||
|
Loading…
Reference in New Issue
Block a user