View Single Post
Old 08-28-2011, 08:06 AM   #1
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Some notes about the reuse of defsked sources

While experimenting with kbook.kbookPage.draw I came across two (2) issues with defsked sources.
  1. parentheses in calculations are missing
    Code:
    Original output:
    	rct.x = naturalBounds.x + naturalBounds.width - rct.width / 2;
    needs to be
    	rct.x = naturalBounds.x + (naturalBounds.width - rct.width) / 2;
  2. arrays needs to be initialized before use

As I'm not into phyton it is way over my head to change anything in igorsk great scripts, but just want to let you know.

Last edited by Mark Nord; 08-28-2011 at 02:32 PM. Reason: typos
Mark Nord is offline   Reply With Quote