[atlantik-cvs] CVS: kdeaddons/atlantikdesigner/designer editor.cpp, 1.38, 1.39

[email protected] Tue, 14 Oct 2003 02:09:24 +0200 (CEST)
Newsgroups gmane.comp.kde.devel.atlantik
Message-ID <[email protected]>
Update of /home/kde/kdeaddons/atlantikdesigner/designer
In directory office:/tmp/cvs-serv10908/designer

Modified Files:
	editor.cpp 
Log Message:
fix bug #66008

Index: editor.cpp
===================================================================
RCS file: /home/kde/kdeaddons/atlantikdesigner/designer/editor.cpp,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- editor.cpp	23 Jun 2003 04:00:39 -0000	1.38
+++ editor.cpp	14 Oct 2003 00:09:21 -0000	1.39
@@ -33,6 +33,7 @@
 	m_type = m_price = m_tax = m_taxPercentage = m_passMoney = 0;
 	m_go = false;
 	m_group = "Default";
+	m_changed = false;
 }
 
 void ConfigEstate::setChanged(bool b)
@@ -871,9 +872,10 @@
 	{
 		if ((*it).name() == groupName)
 		{
-			estate->setColor((*it).fgColor());
-			estate->setBgColor((*it).bgColor());
-
+			if ( (*it).fgColor().isValid() )
+				estate->setColor((*it).fgColor());
+			if ( (*it).bgColor().isValid() )
+				estate->setBgColor((*it).bgColor());
 			estate->update();
 
 			break;