]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
refs #4969
authorjussi.koskela <jussi.koskela@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 18 Jun 2014 13:33:00 +0000 (13:33 +0000)
committerjussi.koskela <jussi.koskela@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 18 Jun 2014 13:33:00 +0000 (13:33 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29653 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn/src/org/simantics/sysdyn/adapter/IndexVariable.java

index a052211e74aa7814497729c84285e91b476d29d1..cfd243eb92b950272e541f4a00f876880fc2a4f3 100644 (file)
@@ -218,8 +218,8 @@ public abstract class IndexVariable<T> extends AbstractPropertyVariable {
                test = rvi + "(\\[.*\\])?";\r
         }\r
         for(String k : rvis.keySet()) {\r
-               if(k.matches(test)) {\r
-                       String value = rvis.get(k);\r
+               String value = rvis.get(k);\r
+               if(k.matches(test) || value.matches(test)) {\r
                        result.first.add(k.substring(1).replace("/", ".").replace("%20", "_"));\r
                        result.second.add(value.substring(1).replace("/", ".").replace("%20", " "));\r
                }\r