Skip to content

Commit

Permalink
Show GeoTiff in format combo box, fix wrong loop index
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jul 19, 2012
1 parent 3c42d65 commit 8ba3a59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/raster/qgsrasterfilewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down
2 changes: 2 additions & 0 deletions src/gui/qgsrasterlayersaveasdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
{
Expand Down

0 comments on commit 8ba3a59

Please sign in to comment.