python-pathvalidate: bump version to 0.14.1
[buildroot-gz.git] / package / gqrx / 0001-fix_compilation_in_gcc-6.patch
blob22ec1effe935a7845a5884cf15fe5ca0e6afaf94
1 From e6baaee4968345a53e977f593362267a91041cff Mon Sep 17 00:00:00 2001
2 From: Valentin Ochs <a@0au.de>
3 Date: Fri, 21 Oct 2016 20:12:50 +0200
4 Subject: [PATCH] Cosmetic & readability changes
6 Backport patch from
7 https://github.com/csete/gqrx/commit/e6baaee4968345a53e977f593362267a91041cff
9 Fix compilation in gcc-6
11 Signed-off-by: Valentin Ochs <a@0au.de>
12 Signed-off-by: Gwenhael Goavec-Merou <gwenhael.goavec-merou@trabucayre.com>
13 ---
14 diff --git a/src/qtgui/plotter.cpp b/src/qtgui/plotter.cpp
15 index e491632..b877546 100644
16 --- a/src/qtgui/plotter.cpp
17 +++ b/src/qtgui/plotter.cpp
18 @@ -1336,8 +1336,11 @@ void CPlotter::drawOverlay()
19 #endif
21 int level = 0;
22 - for (; level < nLevels && tagEnd[level] > x; level++);
23 - level %= nLevels;
24 + while(level < nLevels && tagEnd[level] > x)
25 + level++;
27 + if(level == nLevels)
28 + level = 0;
30 tagEnd[level] = x + nameWidth + slant - 1;
31 m_BookmarkTags.append(qMakePair<QRect, qint64>(QRect(x, level * levelHeight, nameWidth + slant, fontHeight), bookmarks[i].frequency));
32 --
33 2.10.2