[QGIS Commit] r15675 - trunk/qgis/python

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Apr 5 09:50:24 EDT 2011


Author: wonder
Date: 2011-04-05 06:50:24 -0700 (Tue, 05 Apr 2011)
New Revision: 15675

Modified:
   trunk/qgis/python/console.py
Log:
python console: another fix for pasting


Modified: trunk/qgis/python/console.py
===================================================================
--- trunk/qgis/python/console.py	2011-04-05 10:12:26 UTC (rev 15674)
+++ trunk/qgis/python/console.py	2011-04-05 13:50:24 UTC (rev 15675)
@@ -275,7 +275,7 @@
             # with multi-line text also run the commands
             for line in pasteList[:-1]:
               self.insertPlainText(line)
-              self.runCommand(unicode(line))
+              self.runCommand(unicode(self.currentCommand()))
             # last line: only paste the text, do not run it
             self.insertPlainText(unicode(pasteList[-1]))
 



More information about the QGIS-commit mailing list