Skip to content

Commit d3bc6c7

Browse files
committedJul 23, 2012
Merge branch 'master' of github.com:qgis/Quantum-GIS
2 parents 4018ca6 + c9f17ed commit d3bc6c7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/core/qgscoordinatereferencesystem.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1645,6 +1645,7 @@ int QgsCoordinateReferenceSystem::syncDb()
16451645
sqlite3_stmt *select;
16461646
char *errMsg = NULL;
16471647

1648+
QString proj4;
16481649
QString sql;
16491650
QHash<int, QString> wkts;
16501651
loadIDs( wkts );
@@ -1665,7 +1666,7 @@ int QgsCoordinateReferenceSystem::syncDb()
16651666
if ( OSRExportToProj4( crs, &psz ) != OGRERR_NONE )
16661667
continue;
16671668

1668-
QString proj4( psz );
1669+
proj4 = psz;
16691670
proj4 = proj4.trimmed();
16701671

16711672
CPLFree( psz );
@@ -1774,7 +1775,7 @@ int QgsCoordinateReferenceSystem::syncDb()
17741775
}
17751776

17761777
#if !defined(PJ_VERSION) || PJ_VERSION!=470
1777-
QString sql = QString( "select auth_name,auth_id,parameters from tbl_srs WHERE auth_name<>'EPSG' WHERE NOT deprecated" );
1778+
sql = QString( "select auth_name,auth_id,parameters from tbl_srs WHERE auth_name<>'EPSG' WHERE NOT deprecated" );
17781779
if ( sqlite3_prepare( database, sql.toAscii(), sql.size(), &select, &tail ) == SQLITE_OK )
17791780
{
17801781
while ( sqlite3_step( select ) == SQLITE_ROW )

0 commit comments

Comments
 (0)