[QGIS Commit] r9029 - trunk/qgis/src/gui
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Thu Aug 7 20:07:58 EDT 2008
Author: timlinux
Date: 2008-08-07 20:07:58 -0400 (Thu, 07 Aug 2008)
New Revision: 9029
Modified:
trunk/qgis/src/gui/qgsprojectionselector.cpp
Log:
Fixed issues with projected crs list not being properly filed under the appropriate node and not being grouped. Also expand the proj node by default.
Modified: trunk/qgis/src/gui/qgsprojectionselector.cpp
===================================================================
--- trunk/qgis/src/gui/qgsprojectionselector.cpp 2008-08-07 23:32:14 UTC (rev 9028)
+++ trunk/qgis/src/gui/qgsprojectionselector.cpp 2008-08-08 00:07:58 UTC (rev 9029)
@@ -643,7 +643,7 @@
while(sqlite3_step(ppStmt) == SQLITE_ROW)
{
// check to see if the srs is geographic
- int isGeo = sqlite3_column_int(ppStmt, 2);
+ int isGeo = sqlite3_column_int(ppStmt, 3);
if(isGeo)
{
// this is a geographic coordinate system
@@ -659,16 +659,11 @@
else
{
// This is a projected srs
-
- if (previousSrsTypeNode == NULL)
- {
- previousSrsTypeNode = mProjList;
- }
QTreeWidgetItem *node;
- QString srsType = QString::fromUtf8((char*)sqlite3_column_text(ppStmt, 3));
+ QString srsType = QString::fromUtf8((char*)sqlite3_column_text(ppStmt, 4));
// Find the node for this type and add the projection to it
// If the node doesn't exist, create it
- if (srsType == previousSrsType)
+ if (srsType == previousSrsType )
{
node = previousSrsTypeNode;
}
@@ -701,6 +696,7 @@
newItem->setText(QGIS_SRS_ID_COLUMN,QString::fromUtf8((char *)sqlite3_column_text(ppStmt, 1)));
}
}
+ mProjList->setExpanded(true);
}
// close the sqlite3 statement
sqlite3_finalize(ppStmt);
More information about the QGIS-commit
mailing list