mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fix for ticket #4308
This commit is contained in:
parent
ac923a86aa
commit
f8ed801dae
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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" );
|
||||
@ -109,7 +110,7 @@ void QgsRasterTerrainAnalysisPlugin::run()
|
||||
delete filter;
|
||||
if ( d.addLayerToProject() )
|
||||
{
|
||||
mIface->addRasterLayer( outputFile, d.selectedAnalysisMethod() );
|
||||
mIface->addRasterLayer( outputFile, QFileInfo( outputFile ).baseName() );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user