Skip to content

Commit

Permalink
Fix bug where QgsLogger::debug with a double input variable always pr…
Browse files Browse the repository at this point in the history
…inted an

incorrect value (%$@#$%#! sprintfs).


git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6357 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Dec 31, 2006
1 parent 2b53a5b commit 85b6307
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/qgslogger.cpp
Expand Up @@ -17,6 +17,7 @@


#include "qgslogger.h"
#include <QtDebug>

void QgsLogger::debug(const QString& msg, int debuglevel, const char* file, const char* function, int line)
{
Expand Down Expand Up @@ -112,7 +113,7 @@ void QgsLogger::debug(const QString& var, double val, int debuglevel, const char
}
else
{
qDebug("%s: %d: (%s), %s: %d", file, line, function, var.toLocal8Bit().data(), val);
qDebug("%s: %d: (%s), %s: %f", file, line, function, var.toLocal8Bit().data(), val);
}
}
}
Expand Down

0 comments on commit 85b6307

Please sign in to comment.