Revision: 3489 http://vexi.svn.sourceforge.net/vexi/?rev=3489&view=rev Author: clrg Date: 2009-04-25 00:11:10 +0000 (Sat, 25 Apr 2009)
Log Message: ----------- Whilst I'm at it... Modified Paths: -------------- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/text/edit.t Modified: trunk/widgets/org.vexi.widgets/src/org/vexi/lib/text/edit.t =================================================================== --- trunk/widgets/org.vexi.widgets/src/org/vexi/lib/text/edit.t 2009-04-25 00:01:22 UTC (rev 3488) +++ trunk/widgets/org.vexi.widgets/src/org/vexi/lib/text/edit.t 2009-04-25 00:11:10 UTC (rev 3489) @@ -314,18 +314,18 @@ // words are in different blocks if (cbi>sbi) { // sbi - while (thisbox[sbi][swi+1]) thisbox[sbi][swi+1] = null; - + var b = thisbox[sbi]; + var n = b.numchildren - swi; + while (--n>0) b[swi+1] = null; // intervening blocks while (cbi>sbi+1) { thisbox[sbi+1] = null; cbi--; } // cbi - while (cwi>0) { - thisbox[cbi][0] = null; - cwi--; - } + b = thisbox[cbi]; + while (cwi-->0) b[0] = null; + // combine cBlock/sBlock while (cBlock.numchildren) sBlock[sBlock.numchildren] = cBlock[0]; cBlock.thisbox = null; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn