Skip to content

Commit 4cefe6a

Browse files
author
jef
committedMay 28, 2010

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)
Please sign in to comment.