--- a/gui.cpp Mon Mar 25 00:44:11 2013 +0200 +++ b/gui.cpp Mon Mar 25 01:04:20 2013 +0200 @@ -665,7 +665,9 @@ { // If the object isn't in the main or edge color, draw this // list entry in said color. - item->setForeground (0, QColor (g_LDColors[obj->dColor]->zColor.chars())); + color* col = g_LDColors[obj->dColor]; + if (col) + item->setForeground (0, QColor (col->zColor.chars())); } obj->qObjListEntry = item;