mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
fix compile error
git-svn-id: http://svn.osgeo.org/qgis/trunk@11383 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
59f3c8b354
commit
7085cf57c0
@ -881,7 +881,7 @@ bool QgsCoordinateReferenceSystem::operator==( const QgsCoordinateReferenceSyste
|
||||
|
||||
// OSRIsSame is not relaibel when it comes to comparing +towgs84 parameters
|
||||
// Use string compare on WKT instead.
|
||||
if ( ( OSRExportToWkt( mCRS, &thisStr ) == OGRERR_NONE ) )
|
||||
if (( OSRExportToWkt( mCRS, &thisStr ) == OGRERR_NONE ) )
|
||||
{
|
||||
if ( OSRExportToWkt( theSrs.mCRS, &otherStr ) == OGRERR_NONE )
|
||||
{
|
||||
@ -890,13 +890,13 @@ bool QgsCoordinateReferenceSystem::operator==( const QgsCoordinateReferenceSyste
|
||||
if ( !strcmp( thisStr, otherStr ) )
|
||||
{
|
||||
QgsDebugMsg( QString( "MATCHED!" ) + otherStr );
|
||||
OGRFree( *thisStr );
|
||||
OGRFree( *otherStr );
|
||||
CPLFree( thisStr );
|
||||
CPLFree( otherStr );
|
||||
return true;
|
||||
}
|
||||
OGRFree( *otherStr );
|
||||
CPLFree( otherStr );
|
||||
}
|
||||
OGRFree( *thisStr );
|
||||
CPLFree( thisStr );
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user