fixup: Fixed crash while rendering palette for "asis"-color
authorAndreas Eversberg <jolly@eversberg.eu>
Sun, 24 May 2015 11:44:31 +0000 (13:44 +0200)
committerAndreas Eversberg <jolly@eversberg.eu>
Sat, 20 Jun 2015 04:39:33 +0000 (06:39 +0200)
gui/palette.c

index 8dd5d0d..cc9e03d 100644 (file)
@@ -110,9 +110,6 @@ static GdkPixbuf *draw_pixpuf(int i)
                                        cb = 0;
                                else if (cb > 255)
                                        cb = 255;
-                               data[j * rs + k * 3 + 0] = cr;
-                               data[j * rs + k * 3 + 1] = cg;
-                               data[j * rs + k * 3 + 2] = cb;
                        } else
                        if (k >= COLOR_HEIGHT) {
                                cr = 255;