[Exmmt-commit] SF.net SVN: exmmt: [44] net.sourceforge.exmmt/trunk/src/java/net/sourceforge/exmmt/n
Status: Inactive
Brought to you by:
lgrammel
From: <lgr...@us...> - 2006-06-06 02:30:35
|
Revision: 44 Author: lgrammel Date: 2006-06-05 02:23:56 -0700 (Mon, 05 Jun 2006) ViewCVS: http://svn.sourceforge.net/exmmt/?rev=44&view=rev Log Message: ----------- #1500774 scenario "shopping list" Modified Paths: -------------- net.sourceforge.exmmt/trunk/src/java/net/sourceforge/exmmt/navigation/Focus.java Modified: net.sourceforge.exmmt/trunk/src/java/net/sourceforge/exmmt/navigation/Focus.java =================================================================== --- net.sourceforge.exmmt/trunk/src/java/net/sourceforge/exmmt/navigation/Focus.java 2006-06-05 09:21:24 UTC (rev 43) +++ net.sourceforge.exmmt/trunk/src/java/net/sourceforge/exmmt/navigation/Focus.java 2006-06-05 09:23:56 UTC (rev 44) @@ -12,6 +12,8 @@ */ package net.sourceforge.exmmt.navigation; +import java.util.List; + import net.sourceforge.exmmt.builder.Composite; public class Focus { @@ -29,7 +31,13 @@ } public void moveToChild() { - focusedElement = focusedElement.getChildren().get(0); + List<Composite> children = focusedElement.getChildren(); + + if (children.isEmpty()) { + return; + } + + focusedElement = children.get(0); } } \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |