From bb2c6fbb91330bcb450da603fdaef53b9446e59f Mon Sep 17 00:00:00 2001 From: Pappy Van Winkle Date: Sun, 14 Jan 2018 19:35:33 -0600 Subject: [PATCH] Double clicking array variable in Trick QP adds it correctly once again. Fixes #539 --- .../dataproducts/trickqp/utils/TrickQPActionController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trick_source/java/src/trick/dataproducts/trickqp/utils/TrickQPActionController.java b/trick_source/java/src/trick/dataproducts/trickqp/utils/TrickQPActionController.java index cd999380..5096df25 100644 --- a/trick_source/java/src/trick/dataproducts/trickqp/utils/TrickQPActionController.java +++ b/trick_source/java/src/trick/dataproducts/trickqp/utils/TrickQPActionController.java @@ -351,7 +351,7 @@ public class TrickQPActionController { for (int i = 0; i < selectedVars.length; i++) { LogVar varFrom = (LogVar)selectedVars[i]; - if (varFrom.getName().matches("-(?!>)")) { + if ((varFrom.getName().indexOf('-') != -1) || (varFrom.getName().matches("-(?!>)"))) { List vars = get_components_from_array(varFrom.getName()); // expand variable if ( (selectedTreeNodes!=null) && (selectedTreeNodes.size()>0) && (((CommonTreeNode)selectedTreeNodes.get(0)).getNodeType()!=CommonTreeNode.PLOTS_NODE) ) {