Skip to content

Commit

Permalink
do not truncate layer name in legend panel if filename contains period
Browse files Browse the repository at this point in the history
  • Loading branch information
slarosa committed Jul 24, 2018
1 parent 7b59e04 commit abc4d43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5594,7 +5594,7 @@ void QgisApp::showRasterCalculator()
case QgsRasterCalculator::Success:
if ( d.addLayerToProject() )
{
addRasterLayer( d.outputFile(), QFileInfo( d.outputFile() ).baseName() );
addRasterLayer( d.outputFile(), QFileInfo( d.outputFile() ).completeBaseName() );
}
messageBar()->pushMessage( tr( "Raster calculator" ),
tr( "Calculation complete." ),
Expand Down
2 changes: 1 addition & 1 deletion src/providers/gdal/qgsgdalsourceselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void QgsGdalSourceSelect::addButtonClicked()

Q_FOREACH ( const QString &path, QgsFileWidget::splitFilePaths( mRasterPath ) )
{
emit addRasterLayer( path, QFileInfo( path ).baseName(), QStringLiteral( "gdal" ) );
emit addRasterLayer( path, QFileInfo( path ).completeBaseName(), QStringLiteral( "gdal" ) );
}
}
else if ( radioSrcProtocol->isChecked() )
Expand Down

0 comments on commit abc4d43

Please sign in to comment.