Blob Blame History Raw
From 9941fffa203e5d068620c3230795e3bc6412eba4 Mon Sep 17 00:00:00 2001
From: Mark Kretschmann <kretschmann@kde.org>
Date: Sat, 17 Aug 2013 09:35:25 +0200
Subject: [PATCH 014/448] Fix compilation and linking issues.

---
 src/context/applets/analyzer/BlockAnalyzer.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/context/applets/analyzer/BlockAnalyzer.cpp b/src/context/applets/analyzer/BlockAnalyzer.cpp
index e04aa73..562877e 100644
--- a/src/context/applets/analyzer/BlockAnalyzer.cpp
+++ b/src/context/applets/analyzer/BlockAnalyzer.cpp
@@ -60,8 +60,8 @@ BlockAnalyzer::resizeEvent( QResizeEvent *e )
     const int oldRows = m_rows;
 
     // Rounded up so that the last column/line is covered if partially visible
-    m_columns = qMin<int>( ceil( (double)width() / ( BLOCK_WIDTH + 1 ) ), MAX_COLUMNS );
-    m_rows    = ceil( (double)height() / ( BLOCK_HEIGHT + 1 ) );
+    m_columns = std::min( std::ceil( (double)width() / ( BLOCK_WIDTH + 1 ) ), (double)MAX_COLUMNS );
+    m_rows    = std::ceil( (double)height() / ( BLOCK_HEIGHT + 1 ) );
 
     //this is the y-offset for drawing from the top of the widget
     m_y = ( height() - ( m_rows * ( BLOCK_HEIGHT + 1 ) ) + 2 ) / 2;
-- 
1.9.3