Skip to content
Permalink
Browse files

fix source path stripping in debug messages

  • Loading branch information
jef-n committed Jan 23, 2014
1 parent cb5c4e9 commit 37df79236297c8668c47cf10256235c9357187fc
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/qgslogger.cpp
@@ -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 )

0 comments on commit 37df792

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