textrendering/textformatting/tagma/TMSOURCE.CPP
branchRCL_3
changeset 2 6971d1c87c9a
parent 0 1fb32624e06b
--- a/textrendering/textformatting/tagma/TMSOURCE.CPP	Sat Feb 20 00:37:46 2010 +0200
+++ b/textrendering/textformatting/tagma/TMSOURCE.CPP	Fri Mar 12 15:51:09 2010 +0200
@@ -251,6 +251,9 @@
 EXPORT_C void MTmCustom::SetPenColor(CGraphicsContext& aGc,TLogicalRgb aColor) const
 	{	
 	MTmCustomExtension c;
+	TUint index = aColor.SystemColorIndex();
+	if (index)
+	   aColor = SystemColor(index,aColor) & 0xFFFFFF;
 	c.SetPenColor(aGc,aColor);
 	}