zz_addObjectDialog.cpp

changeset 68
c637b172d565
parent 51
94c434a56961
child 72
5755c02d89f0
--- 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);
 }
 
 // =============================================================================

mercurial