Przemek?

--------------------------------------------------
From: "Ron Pinkas" <ron.pin...@xharbour.com>
Sent: Saturday, January 17, 2009 5:45 PM
To: <xharbour-developers@lists.sourceforge.net>
Subject: SetColor() bug

> Hi,
> 
> Does anyone knows the intention behind line 454 of hbgtcore.c:
> 
>   if( nPos >= HB_CLR_ENHANCED && nPos < HB_CLR_UNSELECTED &&
>       *piColorCount > HB_CLR_UNSELECTED )
>      pColors[ HB_CLR_UNSELECTED ] = pColors[ HB_CLR_ENHANCED ];
> 
> It appears to cause the following bug:
> 
> //------------------------------------------------------//
> PROCEDURE Main()
>  SetColor( "W+/B, N/R, N/N, N/N, N/W" )
>  ? 1, SetColor()
> 
>  // This SetColor() wrongly overrides the 5th setting of SetColor()!
>  SetColor( "W+/B" )
>  ? 2, SetColor()
> RETURN
> //------------------------------------------------------//
> 
> Ron 
> 

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to