From 5193fb92bacda6c31af34e5c20d8f81affa0d766 Mon Sep 17 00:00:00 2001
From: Shay Ohayon <shay.ohayon@gmail.com>
Date: Mon, 5 Nov 2012 22:54:51 -0800
Subject: [PATCH] Type casting correctiongs

---
 Source/Processors/Editors/ChannelSelector.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Source/Processors/Editors/ChannelSelector.cpp b/Source/Processors/Editors/ChannelSelector.cpp
index cc4d60069..77a6c74b2 100755
--- a/Source/Processors/Editors/ChannelSelector.cpp
+++ b/Source/Processors/Editors/ChannelSelector.cpp
@@ -138,19 +138,19 @@ void ChannelSelector::refreshButtonBoundaries()
 	{
 		parameterButtons[i]->setBounds(columnWidth/2 + offsetLR +
 									   columnWidth*((i)%nColumns),
-									   floor((i)/nColumns)*rowHeight+offsetUD + topOffset,
+									   floor(double(i)/nColumns)*rowHeight+offsetUD + topOffset,
 									   columnWidth, rowHeight);
 
 		if (isNotSink)
 		{
 			recordButtons[i]->setBounds(columnWidth/2 + offsetLR +
 									   columnWidth*((i)%nColumns) - getDesiredWidth(),
-									   floor((i)/nColumns)*rowHeight+offsetUD + topOffset,
+									   floor(double(i)/nColumns)*rowHeight+offsetUD + topOffset,
 									   columnWidth, rowHeight);
 			audioButtons[i]->setBounds(columnWidth/2 + offsetLR +
 									   columnWidth*((i)%nColumns) -
 									   	getDesiredWidth()*2,
-									   floor((i)/nColumns)*rowHeight+offsetUD + topOffset,
+									   floor(double(i)/nColumns)*rowHeight+offsetUD + topOffset,
 									   columnWidth, rowHeight);
 		}
 
-- 
GitLab