Revision: 4543 http://sourceforge.net/p/jump-pilot/code/4543 Author: michaudm Date: 2015-10-18 18:37:32 +0000 (Sun, 18 Oct 2015) Log Message: ----------- BeanshellAttributeCalcultaor : synchronize layer chooser and variable initialization
Modified Paths: -------------- core/trunk/src/org/openjump/core/ui/plugin/tools/BeanshellAttributeCalculatorPlugIn.java Modified: core/trunk/src/org/openjump/core/ui/plugin/tools/BeanshellAttributeCalculatorPlugIn.java =================================================================== --- core/trunk/src/org/openjump/core/ui/plugin/tools/BeanshellAttributeCalculatorPlugIn.java 2015-10-07 12:30:03 UTC (rev 4542) +++ core/trunk/src/org/openjump/core/ui/plugin/tools/BeanshellAttributeCalculatorPlugIn.java 2015-10-18 18:37:32 UTC (rev 4543) @@ -170,7 +170,7 @@ final JComboBox jcb_layer = dialog.addLayerComboBox( SOURCE_LAYER, layer, null, context.getLayerManager()); keywords.clear(); - keywords.addAll(getFieldsFromLayer(context.getCandidateLayer(0))); + keywords.addAll(getFieldsFromLayer(layer)); Collections.addAll(keywords, FUNCTIONS); final JTextField jtf_att1 = dialog.addTextField( ------------------------------------------------------------------------------ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel