openbsd-ports/graphics/digikam/patches/patch-digikam_digikam_timelinewidget_cpp
espie e64e345303 forgot one patch.
use new sqlite3 now that it's committed.

didn't build before -> no pkgname bump
2008-07-24 17:23:32 +00:00

22 lines
872 B
Plaintext

$OpenBSD: patch-digikam_digikam_timelinewidget_cpp,v 1.1 2008/07/24 17:23:33 espie Exp $
--- digikam/digikam/timelinewidget.cpp.orig Sat Jul 19 12:13:34 2008
+++ digikam/digikam/timelinewidget.cpp Sat Jul 19 12:31:39 2008
@@ -645,7 +645,7 @@ void TimeLineWidget::updatePixmap()
else max = 1.0;
if (val <= 0) logVal = 0;
- else logVal = log(val);
+ else logVal = log(static_cast<double>(val));
top = lround(dim + d->topMargin - ((logVal * dim) / max));
@@ -829,7 +829,7 @@ void TimeLineWidget::updatePixmap()
else max = 1.0;
if (val <= 0) logVal = 0;
- else logVal = log(val);
+ else logVal = log(static_cast<double>(val));
top = lround(dim + d->topMargin - ((logVal * dim) / max));