summaryrefslogtreecommitdiffstats
path: root/src/widget/woverview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget/woverview.h')
-rw-r--r--src/widget/woverview.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/widget/woverview.h b/src/widget/woverview.h
index e5ffd81798..dd94276c44 100644
--- a/src/widget/woverview.h
+++ b/src/widget/woverview.h
@@ -84,11 +84,11 @@ class WOverview : public WWidget {
// Append the waveform overview pixmap according to available data in waveform
virtual bool drawNextPixmapPart() = 0;
void paintText(const QString &text, QPainter *painter);
- inline int valueToPosition(float value) const {
- return static_cast<int>(m_a * value - m_b + 0.5);
+ inline int valueToPosition(double value) const {
+ return static_cast<int>(m_a * value - m_b);
}
inline double positionToValue(int position) const {
- return (static_cast<float>(position) + m_b) / m_a;
+ return (static_cast<double>(position) + m_b) / m_a;
}
const QString m_group;
@@ -116,8 +116,8 @@ class WOverview : public WWidget {
std::vector<WaveformMarkRange> m_markRanges;
// Coefficient value-position linear transposition
- float m_a;
- float m_b;
+ double m_a;
+ double m_b;
double m_dAnalyserProgress;
bool m_bAnalyserFinalizing;