Commit a51b95ab authored by Claes Sjöfors's avatar Claes Sjöfors

xtt: Fix subwindow segfault when updating context qt

parent a6fae84a
......@@ -2008,9 +2008,12 @@ void GlowDrawQt::pop_customcolors()
{
if (customcolors_cnt <= 0) {
printf("** Customcolor stack disorder\n");
return;
}
for (int i = 0; i < customcolors_cnt - 1; i++)
for (int i = 0; i < customcolors_cnt - 1; i++) {
customcolors[i] = customcolors[i + 1];
customcolors[i + 1] = NULL;
}
customcolors_cnt--;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment