Skip to content

Commit

Permalink
fix #2810
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15717 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler committed Apr 15, 2011
1 parent 7ba1fbe commit b75c1b3
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions src/app/qgsrasterlayerproperties.cpp
Expand Up @@ -521,21 +521,37 @@ void QgsRasterLayerProperties::sync()

if ( mRasterLayer->dataProvider()->dataType( 1 ) == QgsRasterDataProvider::ARGBDataType )
{
delete tabPageSymbology;
delete tabPageColormap;
if ( tabPageSymbology != NULL )
{
delete tabPageSymbology;
tabPageSymbology = NULL;
}
if ( tabPageColormap != NULL )
{
delete tabPageColormap;
tabPageColormap = NULL;
}
gboxNoDataValue->setEnabled( false );
gboxCustomTransparency->setEnabled( false );
tabBar->setCurrentWidget( tabPageMetadata );
}

if ( !( mRasterLayer->dataProvider()->capabilities() & QgsRasterDataProvider::BuildPyramids ) )
{
delete tabPagePyramids;
if ( tabPagePyramids != NULL )
{
delete tabPagePyramids;
tabPagePyramids = NULL;
}
}

if ( !( mRasterLayer->dataProvider()->capabilities() & QgsRasterDataProvider::Histogram ) )
{
delete tabPageHistogram;
if ( tabPageHistogram != NULL )
{
delete tabPageHistogram;
tabPageHistogram = NULL;
}
}

#if 0
Expand Down

0 comments on commit b75c1b3

Please sign in to comment.