mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 05:07:54 +00:00
Double clicking array variable in Trick QP adds it correctly once again.
Fixes #539
This commit is contained in:
parent
58103ff889
commit
bb2c6fbb91
@ -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) ) {
|
||||
|
Loading…
Reference in New Issue
Block a user