mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
server: fix absolute path conversion on windows
This commit is contained in:
parent
52c797fd14
commit
9c462664fd
@ -103,14 +103,14 @@ QString QgsServerProjectParser::convertToAbsolutePath( const QString& file ) con
|
||||
bool uncPath = projPath.startsWith( "//" );
|
||||
#endif
|
||||
|
||||
QStringList srcElems = file.split( "/", QString::SkipEmptyParts );
|
||||
QStringList projElems = mProjectPath.split( "/", QString::SkipEmptyParts );
|
||||
QStringList srcElems = srcPath.split( "/", QString::SkipEmptyParts );
|
||||
QStringList projElems = projPath.split( "/", QString::SkipEmptyParts );
|
||||
|
||||
#if defined(Q_OS_WIN)
|
||||
if ( uncPath )
|
||||
{
|
||||
projElems.insert( 0, "" );
|
||||
projElems.insert( 0, "" );
|
||||
projElems.prepend( "" );
|
||||
projElems.prepend( "" );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user