fix confusing comment. Escaping doesn't affect this; commas aren't escaped, since they're split from the value itself, long after MsdFile is loaded. We should deprecate 1,1,1,1 colors in favor of #FFFFFF; they're easier to read and type, too.
This commit is contained in:
@@ -211,12 +211,10 @@ bool LoadFromBGChangesString( BackgroundChange &change, const RString &sBGChange
|
|||||||
{
|
{
|
||||||
case 11:
|
case 11:
|
||||||
change.m_def.m_sColor2 = aBGChangeValues[10];
|
change.m_def.m_sColor2 = aBGChangeValues[10];
|
||||||
// .sm files made before we started escaping will still have '^' instead of ','
|
|
||||||
change.m_def.m_sColor2.Replace( '^', ',' );
|
change.m_def.m_sColor2.Replace( '^', ',' );
|
||||||
// fall through
|
// fall through
|
||||||
case 10:
|
case 10:
|
||||||
change.m_def.m_sColor1 = aBGChangeValues[9];
|
change.m_def.m_sColor1 = aBGChangeValues[9];
|
||||||
// .sm files made before we started escaping will still have '^' instead of ','
|
|
||||||
change.m_def.m_sColor1.Replace( '^', ',' );
|
change.m_def.m_sColor1.Replace( '^', ',' );
|
||||||
// fall through
|
// fall through
|
||||||
case 9:
|
case 9:
|
||||||
|
|||||||
Reference in New Issue
Block a user