Revision: 3189
          http://vexi.svn.sourceforge.net/vexi/?rev=3189&view=rev
Author:   clrg
Date:     2008-11-10 13:51:20 +0000 (Mon, 10 Nov 2008)

Log Message:
-----------
allow children to be placed at the end of a locked box (possibly a temporary 
measure)

Modified Paths:
--------------
    trunk/core/org.vexi.core/src/org/vexi/core/Box.jpp

Modified: trunk/core/org.vexi.core/src/org/vexi/core/Box.jpp
===================================================================
--- trunk/core/org.vexi.core/src/org/vexi/core/Box.jpp  2008-11-10 11:17:35 UTC 
(rev 3188)
+++ trunk/core/org.vexi.core/src/org/vexi/core/Box.jpp  2008-11-10 13:51:20 UTC 
(rev 3189)
@@ -1716,7 +1716,8 @@
         if (newparent != null) {
             if (i == -1)
                 throw new JSExn("Illegal attempt to set the parent of a box");
-            if (newparent.test(LOCK_CHILDREN))
+            // only allow new children to be placed at the end of a locked box
+            if (newparent.test(LOCK_CHILDREN) && i<newparent.treeSize())
                 throw new JSExn("Attempt to add child to parent whilst box 
tree is active");
         }
         // FIXME handle Enter/Leave better


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to