Skip to content

Commit

Permalink
fixed minor bugs in ftools and in ParametersPanel
Browse files Browse the repository at this point in the history
git-svn-id: http://sextante.googlecode.com/svn/trunk/soft/bindings/qgis-plugin@131 881b9c09-3ef8-f3c2-ec3d-21d735c97f4d
  • Loading branch information
volayaf committed Apr 19, 2012
1 parent 3df5283 commit e9f0699
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sextante/ftools/BasicStatistics.py
Expand Up @@ -21,7 +21,7 @@ class BasicStatistics(GeoAlgorithm):
USE_SELECTION = "USE_SELECTION"

def getIcon(self):
return QtGui.QIcon(os.path.dirname(__file__) + "/icons/basic_Statistics.png")
return QtGui.QIcon(os.path.dirname(__file__) + "/icons/basic_statistics.png")


def createHTML(self, outputFile, lstStats):
Expand Down
2 changes: 1 addition & 1 deletion src/sextante/ftools/PointsInPolygon.py
Expand Up @@ -74,7 +74,7 @@ def processAlgorithm(self, progress):
for i in pointList:
pointProvider.featureAtId( int( i ), inFeatB , True, allAttrs )
tmpGeom = QgsGeometry( inFeatB.geometry() )
if inGeom.contains(tmpGeom.asPoint()):
if inGeom.contains(tmpGeom):
count = count + 1
outFeat.setAttributeMap(atMap)
outFeat.addAttribute(index, QVariant(count))
Expand Down
4 changes: 3 additions & 1 deletion src/sextante/gui/ParametersPanel.py
Expand Up @@ -25,14 +25,16 @@

class ParametersPanel(QtGui.QWidget):

NOT_SELECTED = "[Not selected]"

def __init__(self, alg, paramDialog):
super(ParametersPanel, self).__init__(None)
self.alg = alg;
self.paramDialog = paramDialog
self.valueItems = {}
self.dependentItems = {}
self.iterateButtons = {}
self.NOT_SELECTED = ""

self.initGUI()

def initGUI(self):
Expand Down

0 comments on commit e9f0699

Please sign in to comment.