mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -04:00
fix #1257
git-svn-id: http://svn.osgeo.org/qgis/trunk@9217 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
9443ddc130
commit
f6e43c76d8
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user