Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix error when copying gdalinfo output to clipboard (fix #9882)
  • Loading branch information
alexbruy committed Mar 28, 2014
1 parent 8c97462 commit cd9aae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/plugins/GdalTools/tools/doInfo.py
Expand Up @@ -70,15 +70,15 @@ def doCopyLine( self ):
output = ''
items = self.rasterInfoList.selectedItems()
for r in items:
output.append( r.text() + "\n" )
output += r.text() + "\n"
if output:
clipboard = QApplication.clipboard()
clipboard.setText( output )

def doCopyAll( self ):
output = ''
for r in range( self.rasterInfoList.count() ):
output.append( self.rasterInfoList.item( r ).text() + "\n" )
output += self.rasterInfoList.item( r ).text() + "\n"
if output:
clipboard = QApplication.clipboard()
clipboard.setText( output )
Expand Down

0 comments on commit cd9aae7

Please sign in to comment.