PKGBUILDs/community/mythtv/0002-visualisations-fix-ambiguous-abs-call.patch

26 lines
1.1 KiB
Diff
Raw Normal View History

2016-05-08 21:31:59 +00:00
From 8e1d4a498e02ac2398aa4b5478e3d265319f0e41 Mon Sep 17 00:00:00 2001
From: Kevin Mihelich <kevin@archlinuxarm.org>
Date: Sun, 8 May 2016 14:56:39 -0600
Subject: [PATCH 2/2] visualisations: fix ambiguous abs call
---
mythtv/libs/libmythtv/visualisations/videovisualcircles.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mythtv/libs/libmythtv/visualisations/videovisualcircles.cpp b/mythtv/libs/libmythtv/visualisations/videovisualcircles.cpp
index 1140372..554b1f9 100644
--- a/mythtv/libs/libmythtv/visualisations/videovisualcircles.cpp
+++ b/mythtv/libs/libmythtv/visualisations/videovisualcircles.cpp
@@ -23,7 +23,7 @@ void VideoVisualCircles::DrawPriv(MythPainter *painter, QPaintDevice* device)
painter->Begin(device);
for (int i = 0; i < count; i++, rad += m_range, red += incr, green -= incr)
{
- double mag = abs((m_magnitudes[i] + m_magnitudes[i + count]) / 2.0);
+ double mag = fabs((m_magnitudes[i] + m_magnitudes[i + count]) / 2.0);
if (mag > 1.0)
{
pen.setWidth((int)mag);
--
2.8.2