Mercurial > hg > svgui
comparison widgets/Panner.cpp @ 1310:cb51d061cc25 import-audio-data
Fix compiler warning
author | Chris Cannam |
---|---|
date | Thu, 28 Jun 2018 14:48:35 +0100 |
parents | 13f5f84fbfad |
children | d39db4673676 |
comparison
equal
deleted
inserted
replaced
1309:13e17e61f898 | 1310:cb51d061cc25 |
---|---|
75 unit = float(m_rectHeight) / (6 * float(height())); | 75 unit = float(m_rectHeight) / (6 * float(height())); |
76 if (unit < 0.01f) unit = 0.01f; | 76 if (unit < 0.01f) unit = 0.01f; |
77 } | 77 } |
78 | 78 |
79 if (!up) { | 79 if (!up) { |
80 m_rectY += unit * count; | 80 m_rectY += unit * float(count); |
81 } else { | 81 } else { |
82 m_rectY -= unit * count; | 82 m_rectY -= unit * float(count); |
83 } | 83 } |
84 | 84 |
85 normalise(); | 85 normalise(); |
86 emitAndUpdate(); | 86 emitAndUpdate(); |
87 } | 87 } |