Skip to content

Commit cd9aae7

Browse files
committedMar 28, 2014
fix error when copying gdalinfo output to clipboard (fix #9882)
1 parent 8c97462 commit cd9aae7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎python/plugins/GdalTools/tools/doInfo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ def doCopyLine( self ):
7070
output = ''
7171
items = self.rasterInfoList.selectedItems()
7272
for r in items:
73-
output.append( r.text() + "\n" )
73+
output += r.text() + "\n"
7474
if output:
7575
clipboard = QApplication.clipboard()
7676
clipboard.setText( output )
7777

7878
def doCopyAll( self ):
7979
output = ''
8080
for r in range( self.rasterInfoList.count() ):
81-
output.append( self.rasterInfoList.item( r ).text() + "\n" )
81+
output += self.rasterInfoList.item( r ).text() + "\n"
8282
if output:
8383
clipboard = QApplication.clipboard()
8484
clipboard.setText( output )

0 commit comments

Comments
 (0)
Please sign in to comment.