Skip to content
Permalink
Browse files
fix #2810
git-svn-id: http://svn.osgeo.org/qgis/trunk@15717 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
brushtyler committed Apr 15, 2011
1 parent b7f9693 commit 41f62c4f6b1d8eafc146cd3c536bfa92470a8b0a
Showing with 20 additions and 4 deletions.
  1. +20 −4 src/app/qgsrasterlayerproperties.cpp
@@ -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

0 comments on commit 41f62c4

Please sign in to comment.