Skip to content
Permalink
Browse files
fix #1257
git-svn-id: http://svn.osgeo.org/qgis/trunk@9217 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 30, 2008
1 parent 9443ddc commit f6e43c76d81a04848a8a8740df403e6ddcb2144c
Showing with 13 additions and 1 deletion.
  1. +5 −1 src/plugins/grid_maker/graticulecreator.cpp
  2. +8 −0 src/plugins/grid_maker/plugingui.cpp
@@ -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
//
@@ -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();

0 comments on commit f6e43c7

Please sign in to comment.