From: lempinen Date: Tue, 25 Jan 2011 10:52:11 +0000 (+0000) Subject: git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19497 ac1ea38d-2e2b... X-Git-Tag: 2011-04-05-db-merge-trunk~28 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=add1de50c56898f67c884a20accd0cd8ab917434;p=simantics%2Fsysdyn.git git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19497 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/viewUtils/SysdynDatasetSelectionListener.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/viewUtils/SysdynDatasetSelectionListener.java index 79738f17..f82f517e 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/viewUtils/SysdynDatasetSelectionListener.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/viewUtils/SysdynDatasetSelectionListener.java @@ -161,7 +161,11 @@ public abstract class SysdynDatasetSelectionListener implements ISelectionListen if(arrayIndexes == null) { rvis.put(rvi, rvi); } else { - traverseIndexes(g, rvi, rvis, OrderedSetUtils.toList(g, arrayIndexes)); + List arrayIndexList= OrderedSetUtils.toList(g, arrayIndexes); + if(arrayIndexList.size() > 0) + traverseIndexes(g, rvi, rvis, arrayIndexList); + else + rvis.put(rvi, rvi); } Resource modelResource = Variables.getModel(g, variable);