Skip to content
Permalink
Browse files
Fix resolving localized paths with sublayer selection suffix
  • Loading branch information
manisandro committed Jun 22, 2021
1 parent 6f0bac4 commit 8c948587d3bc64642eb60a5832d2b25ed511297a
Showing with 10 additions and 1 deletion.
  1. +10 −1 src/core/qgspathresolver.cpp
@@ -54,8 +54,17 @@ QString QgsPathResolver::readPath( const QString &f ) const

if ( src.startsWith( QLatin1String( "localized:" ) ) )
{
QStringList parts = src.split( "|" );
// strip away "localized:" prefix, replace with actual inbuilt data folder path
return QgsApplication::localizedDataPathRegistry()->globalPath( src.mid( 10 ) ) ;
parts[0] = QgsApplication::localizedDataPathRegistry()->globalPath( parts[0].mid( 10 ) ) ;
if ( !parts[0].isEmpty() )
{
return parts.join( "|" );
}
else
{
return QString();
}
}
if ( src.startsWith( QLatin1String( "attachment:" ) ) )
{

0 comments on commit 8c94858

Please sign in to comment.