Skip to content
Permalink
Browse files

Amend previous commit: call method after null-pointer check (sorry).

git-svn-id: http://svn.osgeo.org/qgis/trunk@15489 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mmassing
mmassing committed Mar 14, 2011
1 parent e9487ba commit 44fedd36b4d36fbe7f9b3f48db03f4de55bb7e31
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/providers/gdal/qgsgdalprovider.cpp
@@ -150,13 +150,16 @@ QgsGdalProvider::QgsGdalProvider( QString const & uri )
GDALAutoCreateWarpedVRT( mGdalBaseDataset, NULL, NULL,
GRA_NearestNeighbour, 0.2, NULL );

GDALGetGeoTransform(mGdalDataset, mGeoTransform);
if ( mGdalDataset == NULL )
{
QgsLogger::warning( "Warped VRT Creation failed." );
mGdalDataset = mGdalBaseDataset;
GDALReferenceDataset( mGdalDataset );
}
else
{
GDALGetGeoTransform(mGdalDataset, mGeoTransform);
}
}
else
{

0 comments on commit 44fedd3

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