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
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>
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()
22 - for (; level < nLevels && tagEnd[level] > x; level++);
24 + while(level < nLevels && tagEnd[level] > x)
27 + if(level == nLevels)
30 tagEnd[level] = x + nameWidth + slant - 1;
31 m_BookmarkTags.append(qMakePair<QRect, qint64>(QRect(x, level * levelHeight, nameWidth + slant, fontHeight), bookmarks[i].frequency));