Skip to content

Commit 9c46266

Browse files
committed
server: fix absolute path conversion on windows
1 parent 52c797f commit 9c46266

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mapserver/qgsserverprojectparser.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,14 @@ QString QgsServerProjectParser::convertToAbsolutePath( const QString& file ) con
103103
bool uncPath = projPath.startsWith( "//" );
104104
#endif
105105

106-
QStringList srcElems = file.split( "/", QString::SkipEmptyParts );
107-
QStringList projElems = mProjectPath.split( "/", QString::SkipEmptyParts );
106+
QStringList srcElems = srcPath.split( "/", QString::SkipEmptyParts );
107+
QStringList projElems = projPath.split( "/", QString::SkipEmptyParts );
108108

109109
#if defined(Q_OS_WIN)
110110
if ( uncPath )
111111
{
112-
projElems.insert( 0, "" );
113-
projElems.insert( 0, "" );
112+
projElems.prepend( "" );
113+
projElems.prepend( "" );
114114
}
115115
#endif
116116

0 commit comments

Comments
 (0)