Skip to content

Commit

Permalink
Fix for ticket #4308
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Oct 13, 2011
1 parent ac923a8 commit f8ed801
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plugins/interpolation/qgsinterpolationdialog.cpp
Expand Up @@ -195,7 +195,7 @@ void QgsInterpolationDialog::on_buttonBox_accepted()
mNumberOfRowsSpinBox->value(), mCellsizeXSpinBox->value(), mCellSizeYSpinBox->value() );
if ( theWriter.writeFile( true ) == 0 )
{
mIface->addRasterLayer( fileName, "Interpolation" );
mIface->addRasterLayer( fileName, QFileInfo( fileName ).baseName() );
accept();
}

Expand Down
Expand Up @@ -26,6 +26,7 @@
#include "qgstotalcurvaturefilter.h"
#include "qgsrasterterrainanalysisdialog.h"
#include <QAction>
#include <QFileInfo>
#include <QProgressDialog>

static const QString name_ = QObject::tr( "Raster Terrain Analysis plugin" );
Expand Down Expand Up @@ -109,7 +110,7 @@ void QgsRasterTerrainAnalysisPlugin::run()
delete filter;
if ( d.addLayerToProject() )
{
mIface->addRasterLayer( outputFile, d.selectedAnalysisMethod() );
mIface->addRasterLayer( outputFile, QFileInfo( outputFile ).baseName() );
}
}
}
Expand Down

0 comments on commit f8ed801

Please sign in to comment.