Skip to content
Permalink
Browse files

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 24, 2018
1 parent c1aca1b commit f20fec4741b66b803370ac5858265f21b3d46394
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/app/qgisapp.cpp
  2. +1 −1 src/providers/gdal/qgsgdalsourceselect.cpp
@@ -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." ),
@@ -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() )

0 comments on commit f20fec4

Please sign in to comment.
You can’t perform that action at this time.