Skip to content
Permalink
Browse files

server: fix absolute path conversion on windows

  • Loading branch information
jef-n committed Aug 8, 2014
1 parent 52c797f commit 9c462664fd2a14d3455859bd25f2fbb8c5fffdca
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/mapserver/qgsserverprojectparser.cpp
@@ -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

0 comments on commit 9c46266

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