Skip to content
Permalink
Browse files
fix error when copying gdalinfo output to clipboard (fix #9882)
  • Loading branch information
alexbruy committed Mar 28, 2014
1 parent 8c97462 commit cd9aae70b6263455221f7f5a5edfc0bc6e9a95b6
Showing with 2 additions and 2 deletions.
  1. +2 −2 python/plugins/GdalTools/tools/doInfo.py
@@ -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 )

0 comments on commit cd9aae7

Please sign in to comment.