> 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

What this was supposed to emulate was this

proc main
setcolor(",b/g")

In that case, clipper sets the 5th element as well.  However, I see we also 
have another problem with this.

I'll see what went wrong.

Paul 


------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to