Merge pull request #543 from pappyvw/master

Double clicking array variable in Trick QP adds it correctly once again.
This commit is contained in:
Alex Lin 2018-02-01 16:29:37 -06:00 committed by GitHub
commit cc7e3ea128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -351,7 +351,7 @@ public class TrickQPActionController {
for (int i = 0; i < selectedVars.length; i++) { for (int i = 0; i < selectedVars.length; i++) {
LogVar varFrom = (LogVar)selectedVars[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 List<String> vars = get_components_from_array(varFrom.getName()); // expand variable
if ( (selectedTreeNodes!=null) && (selectedTreeNodes.size()>0) if ( (selectedTreeNodes!=null) && (selectedTreeNodes.size()>0)
&& (((CommonTreeNode)selectedTreeNodes.get(0)).getNodeType()!=CommonTreeNode.PLOTS_NODE) ) { && (((CommonTreeNode)selectedTreeNodes.get(0)).getNodeType()!=CommonTreeNode.PLOTS_NODE) ) {