Skip to content

Commit

Permalink
Fix typo in commnets for zoom in map tool
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5819 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Sep 12, 2006
1 parent 4249cc5 commit 552f9ed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/qgisapp.cpp
Expand Up @@ -3155,7 +3155,7 @@ void QgisApp::zoomIn()
{
QgsDebugMsg ("Setting map tool to zoomIn");

QgsMapTool* tool = new QgsMapToolZoom(mMapCanvas, FALSE /* zoomOut */);
QgsMapTool* tool = new QgsMapToolZoom(mMapCanvas, FALSE /* zoomIn */);
tool->setAction(mActionZoomIn);
mMapCanvas->setMapTool(tool);

Expand Down
16 changes: 15 additions & 1 deletion src/gui/qgscustomprojectiondialog.cpp
Expand Up @@ -65,6 +65,11 @@ QgsCustomProjectionDialog::QgsCustomProjectionDialog(QWidget *parent, Qt::WFlags
on_pbnFirst_clicked();
else
on_pbnNew_clicked();
//automatically go to insert mode if there are not recs yet
if (mRecordCountLong<1)
{
on_pbnNew_clicked();
}
}

QgsCustomProjectionDialog::~QgsCustomProjectionDialog()
Expand Down Expand Up @@ -428,15 +433,23 @@ void QgsCustomProjectionDialog::on_pbnFirst_clicked()
//enable nav buttons as appropriate
pbnFirst->setEnabled(false);
pbnPrevious->setEnabled(false);
if (mCurrentRecordLong==mRecordCountLong)
//automatically go to insert mode if there are not recs yet
if (mRecordCountLong < 1)
{
on_pbnNew_clicked();
pbnDelete->setEnabled(false);
}
else if (mCurrentRecordLong==mRecordCountLong)
{
pbnNext->setEnabled(false);
pbnLast->setEnabled(false);
pbnDelete->setEnabled(false);
}
else
{
pbnNext->setEnabled(true);
pbnLast->setEnabled(true);
pbnDelete->setEnabled(false);
}
}

Expand Down Expand Up @@ -694,6 +707,7 @@ void QgsCustomProjectionDialog::on_pbnNew_clicked()
pbnPrevious->setEnabled(false);
pbnNext->setEnabled(false);
pbnLast->setEnabled(false);
pbnDelete->setEnabled(false);
pbnNew->setText(tr("Abort"));
//clear the controls
leName->setText("");
Expand Down

0 comments on commit 552f9ed

Please sign in to comment.