Index: python/plugins/fTools/tools/doPointDistance.py =================================================================== --- python/plugins/fTools/tools/doPointDistance.py (revision 13010) +++ python/plugins/fTools/tools/doPointDistance.py (working copy) @@ -1,8 +1,8 @@ #----------------------------------------------------------- -# +# # Create Point Distance Matrix # -# A QGIS plugin for measuring distances between points. Measure +# A QGIS plugin for measuring distances between points. Measure # distances between two point layers, and output the results # as: a) Standard distance matrix, b) Linear distance matrix # or c) Summary distance matrix @@ -13,23 +13,23 @@ # WEB : www.geog.uvic.ca/spar/carson # #----------------------------------------------------------- -# +# # licensed under the terms of GNU GPL 2 -# +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. -# +# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -# +# # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# +# #--------------------------------------------------------------------- from PyQt4.QtCore import * @@ -60,6 +60,7 @@ self.inPoint2.addItem(layer.name()) def update1(self, inputLayer): + self.inField1.clear() changedLayer = self.getVectorLayerByName(unicode(inputLayer)) changedField = self.getFieldList(changedLayer) for i in changedField: @@ -67,6 +68,7 @@ self.inField1.addItem(unicode(changedField[i].name())) def update2(self, inputLayer): + self.inField2.clear() changedLayer = self.getVectorLayerByName(unicode(inputLayer)) changedField = self.getFieldList(changedLayer) for i in changedField: