Skip to content
Permalink
Browse files
Settings -> Project Properties -> Projections now shows, as selected,…
… the current projection. Previously nothing was selected, making it difficult to determine what the current projection actually was.

This is because QgsProjectionSelector::setSelectedSRSID() now works as advertised when called externally.

It didn't work before, because setSelectedSRSID() did not make sure the tree widget was pre-populated with the projection list.

This commit is a pre-requisite to fixing #11.  This is so that we can actually perform the experiment to prove future bug fixes against #11.



git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5618 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
morb_au committed Jul 21, 2006
1 parent d5a4a56 commit 6f42a275d2197723913af47206f96f1909c57b50
Showing with 26 additions and 0 deletions.
  1. +26 −0 src/widgets/projectionselector/qgsprojectionselector.cpp
@@ -146,6 +146,19 @@ QString QgsProjectionSelector::ogcWmsCrsFilterAsSqlExpression(QSet<QString> * cr

void QgsProjectionSelector::setSelectedSRSName(QString theSRSName)
{
// ensure the projection list view is actually populated
// before we select from its contents

if (!mProjListDone)
{
applyProjList(&mCrsFilter);
}

if (!mUserProjListDone)
{
applyUserProjList(&mCrsFilter);
}

mSRSNameSelection = theSRSName;
mSRSNameSelectionPending = TRUE;
applySRSNameSelection();
@@ -154,6 +167,19 @@ void QgsProjectionSelector::setSelectedSRSName(QString theSRSName)

void QgsProjectionSelector::setSelectedSRSID(long theSRSID)
{
// ensure the projection list view is actually populated
// before we select from its contents

if (!mProjListDone)
{
applyProjList(&mCrsFilter);
}

if (!mUserProjListDone)
{
applyUserProjList(&mCrsFilter);
}

mSRSIDSelection = theSRSID;
mSRSIDSelectionPending = TRUE;
applySRSIDSelection();

0 comments on commit 6f42a27

Please sign in to comment.