mirror of
https://github.com/nasa/trick.git
synced 2024-12-21 22:17:51 +00:00
Merge pull request #543 from pappyvw/master
Double clicking array variable in Trick QP adds it correctly once again.
This commit is contained in:
commit
cc7e3ea128
@ -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) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user