Skip to content

Commit

Permalink
fix source path stripping in debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jan 23, 2014
1 parent cb5c4e9 commit 37df792
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/qgslogger.cpp
Expand Up @@ -181,7 +181,9 @@ int QgsLogger::debugLevel()
{
if ( sPrefixLength == -1 )
{
sPrefixLength = sizeof( CMAKE_SOURCE_DIR ) + 1;
sPrefixLength = sizeof( CMAKE_SOURCE_DIR );
if( CMAKE_SOURCE_DIR[sPrefixLength-1] == '/' )
sPrefixLength++;
}

if ( sDebugLevel == -999 )
Expand Down

0 comments on commit 37df792

Please sign in to comment.