Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
server: fix absolute path conversion on windows
  • Loading branch information
jef-n committed Aug 8, 2014
1 parent 52c797f commit 9c46266
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/mapserver/qgsserverprojectparser.cpp
Expand Up @@ -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

Expand Down

0 comments on commit 9c46266

Please sign in to comment.