Compile on MSVC 2003

Help the compiler pick the correct overload for the call to pow().
This commit is contained in:
Eskil Abrahamsen Blomfeldt
2008-12-03 10:16:16 +01:00
parent a22df6cf50
commit 0fcb8131bd

View File

@@ -69,7 +69,7 @@ void BaseAnnotationHighlighter::setChangeNumbers(const ChangeNumbers &changeNumb
// Assign a color gradient to annotation change numbers. Give
// each change number a unique color.
const double oneThird = 1.0 / 3.0;
const int step = qRound(ceil(pow(changeNumbers.count(), oneThird)));
const int step = qRound(ceil(pow(double(changeNumbers.count()), oneThird)));
QList<QColor> colors;
const int factor = 255 / step;
for (int i=0; i<step; ++i)