Skip to content

Commit

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

Please sign in to comment.