Bug #7908

Trevor DeVore lists at mangomultimedia.com
Mon Apr 20 10:10:31 EDT 2009


On Apr 20, 2009, at 9:48 AM, giovanni wrote:

> Hi all!
>
> Ref.: bug #7908
>
> http://quality.runrev.com/qacenter/show_bug.cgi?id=7908
>
> Datagrid causes Revolution crash when the paintcompression is set to  
> "JPEG"
>
> I've installed and using the last 3.5-gm1 version.
> This bug is still here in Windows XP/Vista.
> Seems resolved under MacOS.
>
> Is there any chance for a solution for Windows in a gm2? :D

Hi Giovanni,

I just took a look at this and see the crash on OS X as well. The  
crash is occurring when the data grid draws the alternating rows.  A  
quick fix is the following:

1) edit script of btn "Data Grid" of stack "revDataGridLibrary"
2) Locate the _CreateAlternatingColorImage handler.
3) Change:

-----
lock screen
set the rect of pDestImg to theRect
set the imagedata of pDestImg to theOffsetRow & theColor1Row &  
theColor2Row
unlock screen
-----

to

-----
lock screen
set the rect of pDestImg to theRect
put the paintcompression into theOrigCompress
set the paintcompression to PNG
set the imagedata of pDestImg to theOffsetRow & theColor1Row &  
theColor2Row
set the paintcompression to theOrigCompress
unlock screen
-----

Doing the above fixed the issue on my machine. Does it work for you?

Regards,

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Developer Resources: http://revolution.bluemangolearning.com



More information about the use-livecode mailing list