Double clicking array variable in Trick QP adds it correctly once again.

Fixes #539
This commit is contained in:
Pappy Van Winkle 2018-01-14 19:35:33 -06:00
parent 58103ff889
commit bb2c6fbb91

View File

@ -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<String> vars = get_components_from_array(varFrom.getName()); // expand variable
if ( (selectedTreeNodes!=null) && (selectedTreeNodes.size()>0)
&& (((CommonTreeNode)selectedTreeNodes.get(0)).getNodeType()!=CommonTreeNode.PLOTS_NODE) ) {