diff options
author | RJ Ryan <rryan@mixxx.org> | 2014-01-08 15:17:40 -0500 |
---|---|---|
committer | RJ Ryan <rryan@mixxx.org> | 2014-01-08 15:17:40 -0500 |
commit | 6863f5305d56f6da20efd8396894419848fae5c8 (patch) | |
tree | e33dace87d4e1c3cf1e262d915aefb0605e3aba9 /src/widget/wdisplay.cpp | |
parent | 1554df44d1d45a2e8ab7a2645091f553c1acb645 (diff) |
Remove direct access to WWidget::m_value from child classes.
Diffstat (limited to 'src/widget/wdisplay.cpp')
-rw-r--r-- | src/widget/wdisplay.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget/wdisplay.cpp b/src/widget/wdisplay.cpp index b0076cb183..59df7775d3 100644 --- a/src/widget/wdisplay.cpp +++ b/src/widget/wdisplay.cpp @@ -145,7 +145,7 @@ int WDisplay::getActivePixmapIndex() const { // Subtracting an epsilon prevents out of bound values at the end of the // range and biases the middle value towards the lower of the 2 center // pixmaps when there are an even number of pixmaps. - return static_cast<int>(m_value * numPixmaps() - 0.00001); + return static_cast<int>(getValue() * numPixmaps() - 0.00001); } void WDisplay::paintEvent(QPaintEvent* ) { |