Skip to content

Commit 5604200

Browse files
author
g_j_m
committed
Fix bug where QgsLogger::debug with a double input variable always printed an
incorrect value (%$@#$%#! sprintfs). git-svn-id: http://svn.osgeo.org/qgis/trunk@6357 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 2ec2eb5 commit 5604200

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/qgslogger.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818

1919
#include "qgslogger.h"
20+
#include <QtDebug>
2021

2122
void QgsLogger::debug(const QString& msg, int debuglevel, const char* file, const char* function, int line)
2223
{
@@ -112,7 +113,7 @@ void QgsLogger::debug(const QString& var, double val, int debuglevel, const char
112113
}
113114
else
114115
{
115-
qDebug("%s: %d: (%s), %s: %d", file, line, function, var.toLocal8Bit().data(), val);
116+
qDebug("%s: %d: (%s), %s: %f", file, line, function, var.toLocal8Bit().data(), val);
116117
}
117118
}
118119
}

0 commit comments

Comments
 (0)