git-svn-id: http://svn.osgeo.org/qgis/trunk@9217 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
jef 2008-08-30 14:51:44 +00:00
parent 9443ddc130
commit f6e43c76d8
2 changed files with 13 additions and 1 deletions

View File

@ -50,7 +50,7 @@ GraticuleCreator::~GraticuleCreator()
{
}
//TODO: check for rediculous intervals!
//TODO: check for ridiculous intervals!
void GraticuleCreator::generatePointGraticule(
double theXInterval,
double theYInterval,
@ -68,6 +68,10 @@ void GraticuleCreator::generatePointGraticule(
mFields,
QGis::WKBPoint,
&mCRS );
if( theXInterval==0.0 || theYInterval==0.0 )
return;
//
// Order our loop so that it goes from smallest to biggest
//

View File

@ -56,6 +56,14 @@ void QgsGridMakerPluginGui::on_buttonBox_accepted()
double myXInterval = leXInterval->text().toDouble();
double myYInterval = leYInterval->text().toDouble();
if( myXInterval==0.0 || myYInterval==0.0 )
{
QMessageBox::warning( 0, tr( "QGIS - Grid Maker" ),
QString( tr( "Please enter intervals before pressing OK!" ) ) );
return;
}
double myXOrigin = leXLowerLeft->text().toDouble();
double myYOrigin = leYLowerLeft->text().toDouble();
double myEndPointX = leXUpperRight->text().toDouble();