Skip to content
Permalink
Browse files

Show GeoTiff in format combo box, fix wrong loop index

  • Loading branch information
mhugent committed Jul 19, 2012
1 parent 3c42d65 commit 8ba3a59fc3811d6c2c28aeb060c24ef3a5e1eb76
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/core/raster/qgsrasterfilewriter.cpp
  2. +2 −0 src/gui/qgsrasterlayersaveasdialog.cpp
@@ -152,7 +152,7 @@ QgsRasterFileWriter::WriterError QgsRasterFileWriter::writeDataRaster( QgsRaster
else
{
//loop over data
for ( int i = 0; i <= nBands; ++i )
for ( int i = 1; i <= nBands; ++i )
{
destProvider->write( dataList[i - 1], i, iterCols, iterRows, iterLeft, iterTop );
}
@@ -10,6 +10,8 @@ QgsRasterLayerSaveAsDialog::QgsRasterLayerSaveAsDialog( QgsRasterDataProvider* s
setupUi( this );
setValidators();

mFormatComboBox->addItem( "GeoTIFF" ); //only one hardcoded format at the moment

//fill reasonable default values depending on the provider
if ( mDataProvider )
{

0 comments on commit 8ba3a59

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