@@ -643,7 +643,7 @@ void QgsProjectionSelector::applyProjList(QSet<QString> * crsFilter)
643
643
while (sqlite3_step (ppStmt) == SQLITE_ROW)
644
644
{
645
645
// check to see if the srs is geographic
646
- int isGeo = sqlite3_column_int (ppStmt, 2 );
646
+ int isGeo = sqlite3_column_int (ppStmt, 3 );
647
647
if (isGeo)
648
648
{
649
649
// this is a geographic coordinate system
@@ -659,16 +659,11 @@ void QgsProjectionSelector::applyProjList(QSet<QString> * crsFilter)
659
659
else
660
660
{
661
661
// This is a projected srs
662
-
663
- if (previousSrsTypeNode == NULL )
664
- {
665
- previousSrsTypeNode = mProjList ;
666
- }
667
662
QTreeWidgetItem *node;
668
- QString srsType = QString::fromUtf8 ((char *)sqlite3_column_text (ppStmt, 3 ));
663
+ QString srsType = QString::fromUtf8 ((char *)sqlite3_column_text (ppStmt, 4 ));
669
664
// Find the node for this type and add the projection to it
670
665
// If the node doesn't exist, create it
671
- if (srsType == previousSrsType)
666
+ if (srsType == previousSrsType )
672
667
{
673
668
node = previousSrsTypeNode;
674
669
}
@@ -701,6 +696,7 @@ void QgsProjectionSelector::applyProjList(QSet<QString> * crsFilter)
701
696
newItem->setText (QGIS_SRS_ID_COLUMN,QString::fromUtf8 ((char *)sqlite3_column_text (ppStmt, 1 )));
702
697
}
703
698
}
699
+ mProjList ->setExpanded (true );
704
700
}
705
701
// close the sqlite3 statement
706
702
sqlite3_finalize (ppStmt);
0 commit comments