diff -r d523a370a17a -r c637b172d565 zz_addObjectDialog.cpp --- a/zz_addObjectDialog.cpp Mon Mar 25 01:04:20 2013 +0200 +++ b/zz_addObjectDialog.cpp Mon Mar 25 15:20:56 2013 +0200 @@ -81,7 +81,7 @@ dColor = (type == OBJ_CondLine || type == OBJ_Line) ? dEdgeColor : dMainColor; qColorButton = new QPushButton; - setButtonBackground (qColorButton, g_LDColors[dColor]->zColor); + setButtonBackground (qColorButton, getColor (dColor)->zColor); connect (qColorButton, SIGNAL (clicked ()), this, SLOT (slot_colorButtonClicked ())); } @@ -141,7 +141,7 @@ // ============================================================================= void AddObjectDialog::slot_colorButtonClicked () { ColorSelectDialog::staticDialog (dColor, dColor, this); - setButtonBackground (qColorButton, g_LDColors[dColor]->zColor); + setButtonBackground (qColorButton, getColor (dColor)->zColor); } // =============================================================================