Skip to content

Commit 4cefe6a

Browse files
author
jef
committed
fix #2757
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13583 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent f3f2a3f commit 4cefe6a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/plugins/wfs/qgswfssourceselect.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,11 @@ void QgsWFSSourceSelect::addLayer()
370370
if ( canvas && mBboxCheckBox->isChecked() )
371371
{
372372
QgsRectangle currentExtent = canvas->extent();
373-
bBoxString = QString( "&BBOX=%1,%2,%3,%4" ).arg( currentExtent.xMinimum() ).arg( currentExtent.yMinimum() ).arg( currentExtent.xMaximum() ).arg( currentExtent.yMaximum() );
373+
bBoxString = QString( "&BBOX=%1,%2,%3,%4" )
374+
.arg( currentExtent.xMinimum(), 0, 'f' )
375+
.arg( currentExtent.yMinimum(), 0, 'f' )
376+
.arg( currentExtent.xMaximum(), 0, 'f' )
377+
.arg( currentExtent.yMaximum(), 0, 'f' );
374378
}
375379
mIface->addVectorLayer( uri + "SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=" + typeName + crsString + bBoxString, typeName, "WFS" );
376380
}

0 commit comments

Comments
 (0)