[QGIS Commit] r14340 - trunk/qgis/src/core/gps

svn_qgis at osgeo.org svn_qgis at osgeo.org
Tue Oct 5 08:39:48 EDT 2010


Author: jef
Date: 2010-10-05 12:39:48 +0000 (Tue, 05 Oct 2010)
New Revision: 14340

Modified:
   trunk/qgis/src/core/gps/qgsgpsdetector.cpp
Log:
fix assertion in gps detector

Modified: trunk/qgis/src/core/gps/qgsgpsdetector.cpp
===================================================================
--- trunk/qgis/src/core/gps/qgsgpsdetector.cpp	2010-10-05 12:30:43 UTC (rev 14339)
+++ trunk/qgis/src/core/gps/qgsgpsdetector.cpp	2010-10-05 12:39:48 UTC (rev 14340)
@@ -143,7 +143,7 @@
 
       QStringList gpsParams = mPortList[ mPortIndex ].first.split( ":" );
 
-      Q_ASSERT( gpsParams.size() == 3 );
+      Q_ASSERT( gpsParams.size() >= 3 );
 
       mConn = new QgsGpsdConnection( gpsParams[0], gpsParams[1].toInt(), gpsParams[2] );
     }



More information about the QGIS-commit mailing list