Skip to content

Commit 6f2ba0f

Browse files
committed
Fix some copy/paste errors identified by Coverity
1 parent 93a8683 commit 6f2ba0f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/qgscustomprojectiondialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ void QgsCustomProjectionDialog::on_pbnCalculate_clicked()
498498
tr( "Internal Error (source projection invalid?)" ) );
499499
projectedX->setText( "" );
500500
projectedY->setText( "" );
501-
pj_free( myProj );
501+
pj_free( wgs84Proj );
502502
return;
503503
}
504504

src/core/raster/qgsrasterlayerrenderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ QgsRasterLayerRenderer::QgsRasterLayerRenderer( QgsRasterLayer* layer, QgsRender
6868
catch ( QgsCsException &cs )
6969
{
7070
QgsMessageLog::logMessage( QObject::tr( "Could not reproject layer extent: %1" ).arg( cs.what() ), QObject::tr( "Raster" ) );
71-
myProjectedViewExtent.setMinimal();
71+
myProjectedLayerExtent.setMinimal();
7272
}
7373
}
7474
else

src/providers/postgres/qgspostgresconn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ QString QgsPostgresConn::postgisVersion()
782782
QStringList gist = postgisParts.filter( "STATS" );
783783
if ( gist.size() == 1 )
784784
{
785-
mGistAvailable = ( geos[0].indexOf( "=1" ) > -1 );
785+
mGistAvailable = ( gist[0].indexOf( "=1" ) > -1 );
786786
}
787787
QStringList proj = postgisParts.filter( "PROJ" );
788788
if ( proj.size() == 1 )

0 commit comments

Comments
 (0)