Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
do not truncate layer name in legend panel if filename contains period
cherry-picked from abc4d43
  • Loading branch information
slarosa authored and nyalldawson committed Jul 28, 2018
1 parent c1aca1b commit f20fec4
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
Expand Up @@ -5518,7 +5518,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
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 f20fec4

Please sign in to comment.