Removed a stupid typo bug
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4977 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -262,7 +262,7 @@ bool ColorSet::ConvertFromMessage(const BMessage *msg)
|
|||||||
|
|
||||||
if(msg->FindString("Name",&str)==B_OK)
|
if(msg->FindString("Name",&str)==B_OK)
|
||||||
name=str;
|
name=str;
|
||||||
if(msg->FindData("Background",(type_code)'RGBC',(const void**)&col,&size)==B_OK)
|
if(msg->FindData("Panel Background",(type_code)'RGBC',(const void**)&col,&size)==B_OK)
|
||||||
panel_background=*col;
|
panel_background=*col;
|
||||||
if(msg->FindData("Panel Text",(type_code)'RGBC',(const void**)&col,&size)==B_OK)
|
if(msg->FindData("Panel Text",(type_code)'RGBC',(const void**)&col,&size)==B_OK)
|
||||||
panel_text=*col;
|
panel_text=*col;
|
||||||
@@ -357,7 +357,7 @@ RGBColor *ColorSet::StringToMember(const char *string)
|
|||||||
if(!string)
|
if(!string)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if(strcmp(string,"Background")==0)
|
if(strcmp(string,"Panel Background")==0)
|
||||||
return &panel_background;
|
return &panel_background;
|
||||||
if(strcmp(string,"Panel Text")==0)
|
if(strcmp(string,"Panel Text")==0)
|
||||||
return &panel_text;
|
return &panel_text;
|
||||||
|
|||||||
Reference in New Issue
Block a user