Skip to content
Permalink
Browse files

fix build error

  • Loading branch information
jef-n committed Jul 23, 2012
1 parent 840e280 commit c9f17ed0e4e9a5ce425ee73a505a3190c2fa22dc
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/core/qgscoordinatereferencesystem.cpp
@@ -1645,6 +1645,7 @@ int QgsCoordinateReferenceSystem::syncDb()
sqlite3_stmt *select;
char *errMsg = NULL;

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

QString proj4( psz );
proj4 = psz;
proj4 = proj4.trimmed();

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

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

0 comments on commit c9f17ed

Please sign in to comment.
You can’t perform that action at this time.