Skip to content

Commit 1deaeb0

Browse files
committedNov 3, 2013
[ftools] disable add to canvas checkbox ìf out file is not selected
1 parent eeea36e commit 1deaeb0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎python/plugins/fTools/tools/doGeometry.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,11 @@ def updateGui( self ):
181181
if self.chkWriteShapefile.isChecked():
182182
self.lineEdit.setEnabled( True )
183183
self.toolOut.setEnabled( True )
184+
self.addToCanvasCheck.setEnabled( True )
184185
else:
185186
self.lineEdit.setEnabled( False )
186187
self.toolOut.setEnabled( False )
188+
self.addToCanvasCheck.setEnabled( False )
187189

188190
def populateLayers( self ):
189191
self.inShape.clear()
@@ -567,7 +569,7 @@ def export_geometry_info( self ):
567569
atMap = inFeat.attributes()
568570
maxIndex = index1 if index1>index2 else index2
569571
if maxIndex>len(atMap):
570-
atMap += [ "" ] * ( index2+1 - len(atMap) )
572+
atMap += [ "" ] * ( index2+1 - len(atMap) )
571573
atMap[ index1 ] = attr1
572574
if index1!=index2:
573575
atMap[ index2 ] = attr2

0 commit comments

Comments
 (0)
Please sign in to comment.