[QGIS Commit] r13810 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sat Jun 26 16:26:44 EDT 2010


Author: jef
Date: 2010-06-26 20:26:44 +0000 (Sat, 26 Jun 2010)
New Revision: 13810

Modified:
   trunk/qgis/src/app/qgisapp.cpp
Log:
fix r13808

Modified: trunk/qgis/src/app/qgisapp.cpp
===================================================================
--- trunk/qgis/src/app/qgisapp.cpp	2010-06-26 20:18:00 UTC (rev 13809)
+++ trunk/qgis/src/app/qgisapp.cpp	2010-06-26 20:26:44 UTC (rev 13810)
@@ -4511,6 +4511,9 @@
         int j = 0;
         foreach( int id, srcMap.keys() )
         {
+          if ( j >= dstAttr.size() )
+            break;
+
           dstMap[ dstAttr[j++] ] = srcMap[id];
         }
 



More information about the QGIS-commit mailing list