Skip to content
Permalink
Browse files

Fix bug where QgsLogger::debug with a double input variable always pr…

…inted an

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


git-svn-id: http://svn.osgeo.org/qgis/trunk@6357 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m
g_j_m committed Dec 31, 2006
1 parent 2ec2eb5 commit 5604200fc57071eac892b2ba9372ab2700873196
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/core/qgslogger.cpp
@@ -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)
{
@@ -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);
}
}
}

0 comments on commit 5604200

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