[QGIS Commit] r13583 - trunk/qgis/src/plugins/wfs

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri May 28 17:31:38 EDT 2010


Author: jef
Date: 2010-05-28 17:31:38 -0400 (Fri, 28 May 2010)
New Revision: 13583

Modified:
   trunk/qgis/src/plugins/wfs/qgswfssourceselect.cpp
Log:
fix #2757

Modified: trunk/qgis/src/plugins/wfs/qgswfssourceselect.cpp
===================================================================
--- trunk/qgis/src/plugins/wfs/qgswfssourceselect.cpp	2010-05-28 21:00:25 UTC (rev 13582)
+++ trunk/qgis/src/plugins/wfs/qgswfssourceselect.cpp	2010-05-28 21:31:38 UTC (rev 13583)
@@ -370,7 +370,11 @@
     if ( canvas && mBboxCheckBox->isChecked() )
     {
       QgsRectangle currentExtent = canvas->extent();
-      bBoxString = QString( "&BBOX=%1,%2,%3,%4" ).arg( currentExtent.xMinimum() ).arg( currentExtent.yMinimum() ).arg( currentExtent.xMaximum() ).arg( currentExtent.yMaximum() );
+      bBoxString = QString( "&BBOX=%1,%2,%3,%4" )
+                   .arg( currentExtent.xMinimum(), 0, 'f' )
+                   .arg( currentExtent.yMinimum(), 0, 'f' )
+                   .arg( currentExtent.xMaximum(), 0, 'f' )
+                   .arg( currentExtent.yMaximum(), 0, 'f' );
     }
     mIface->addVectorLayer( uri + "SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=" + typeName + crsString + bBoxString, typeName, "WFS" );
   }



More information about the QGIS-commit mailing list