Skip to content

Commit abc4d43

Browse files
committed
do not truncate layer name in legend panel if filename contains period
1 parent 7b59e04 commit abc4d43

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5594,7 +5594,7 @@ void QgisApp::showRasterCalculator()
55945594
case QgsRasterCalculator::Success:
55955595
if ( d.addLayerToProject() )
55965596
{
5597-
addRasterLayer( d.outputFile(), QFileInfo( d.outputFile() ).baseName() );
5597+
addRasterLayer( d.outputFile(), QFileInfo( d.outputFile() ).completeBaseName() );
55985598
}
55995599
messageBar()->pushMessage( tr( "Raster calculator" ),
56005600
tr( "Calculation complete." ),

src/providers/gdal/qgsgdalsourceselect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ void QgsGdalSourceSelect::addButtonClicked()
154154

155155
Q_FOREACH ( const QString &path, QgsFileWidget::splitFilePaths( mRasterPath ) )
156156
{
157-
emit addRasterLayer( path, QFileInfo( path ).baseName(), QStringLiteral( "gdal" ) );
157+
emit addRasterLayer( path, QFileInfo( path ).completeBaseName(), QStringLiteral( "gdal" ) );
158158
}
159159
}
160160
else if ( radioSrcProtocol->isChecked() )

0 commit comments

Comments
 (0)