Skip to content
Permalink
Browse files

fix precise build

  • Loading branch information
jef-n committed May 28, 2016
1 parent 0367d7a commit 919c8ee84332d4e107c9449304592b8fdd8e8f91
Showing with 9 additions and 9 deletions.
  1. +9 −9 src/gui/qgsrasterpyramidsoptionswidget.cpp
@@ -54,11 +54,11 @@ void QgsRasterPyramidsOptionsWidget::updateUi()
// keep it in sync with qgsrasterlayerproperties.cpp
tmpStr = mySettings.value( prefix + "format", "external" ).toString();
if ( tmpStr == "internal" )
cbxPyramidsFormat->setCurrentIndex( Format::INTERNAL );
cbxPyramidsFormat->setCurrentIndex( INTERNAL );
else if ( tmpStr == "external_erdas" )
cbxPyramidsFormat->setCurrentIndex( Format::ERDAS );
cbxPyramidsFormat->setCurrentIndex( ERDAS );
else
cbxPyramidsFormat->setCurrentIndex( Format::GTIFF );
cbxPyramidsFormat->setCurrentIndex( GTIFF );

// initialize resampling methods
cboResamplingMethod->clear();
@@ -126,9 +126,9 @@ void QgsRasterPyramidsOptionsWidget::apply()
QString tmpStr;

// mySettings.setValue( prefix + "internal", cbxPyramidsInternal->isChecked() );
if ( cbxPyramidsFormat->currentIndex() == Format::INTERNAL )
if ( cbxPyramidsFormat->currentIndex() == INTERNAL )
tmpStr = "internal";
else if ( cbxPyramidsFormat->currentIndex() == Format::ERDAS )
else if ( cbxPyramidsFormat->currentIndex() == ERDAS )
tmpStr = "external_erdas";
else
tmpStr = "external";
@@ -165,17 +165,17 @@ void QgsRasterPyramidsOptionsWidget::on_cbxPyramidsLevelsCustom_toggled( bool to

void QgsRasterPyramidsOptionsWidget::on_cbxPyramidsFormat_currentIndexChanged( int index )
{
mSaveOptionsWidget->setEnabled( index != Format::ERDAS );
mSaveOptionsWidget->setEnabled( index != ERDAS );
QgsRaster::RasterPyramidsFormat format;
switch ( index )
{
case Format::GTIFF:
case GTIFF:
format = QgsRaster::PyramidsGTiff;
break;
case Format::INTERNAL:
case INTERNAL:
format = QgsRaster::PyramidsInternal;
break;
case Format::ERDAS:
case ERDAS:
format = QgsRaster::PyramidsErdas;
break;
default:

0 comments on commit 919c8ee

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