Skip to content

Commit 78417eb

Browse files
author
homann
committed
Added EPSG to the quick CRS button
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10110 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent bf1e587 commit 78417eb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/gui/qgsprojectionselector.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ void QgsProjectionSelector::applyCRSNameSelection()
296296

297297
QString QgsProjectionSelector::getCrsIdName( long theCrsId )
298298
{
299+
QString retvalue("");
299300
if (
300301
( mProjListDone ) &&
301302
( mUserProjListDone )
@@ -307,10 +308,14 @@ QString QgsProjectionSelector::getCrsIdName( long theCrsId )
307308

308309
if ( nodes.count() > 0 )
309310
{
310-
return nodes.first()->text(0);
311+
retvalue = nodes.first()->text(NAME_COLUMN);
312+
if (nodes.first()->text(EPSG_COLUMN) != "" )
313+
{
314+
retvalue += QString(" (EPSG : %1)").arg(nodes.first()->text(EPSG_COLUMN));
315+
}
311316
}
312317
}
313-
return QString( "" );
318+
return retvalue;
314319

315320
}
316321

0 commit comments

Comments
 (0)