• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gqrx/0001-fix_compilation_in_gcc-6.patch
Gwenhael Goavec-MerouGwenhael Goavec-Merou committed 193d83ebd8e10 Feb 2017
Raw file
Source viewDiff to previous
 
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
5
​
6
Backport patch from
7
https://github.com/csete/gqrx/commit/e6baaee4968345a53e977f593362267a91041cff
8
​
9
Fix compilation in gcc-6
10
​
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
20
 
21
             int level = 0;
22
-            for (; level < nLevels && tagEnd[level] > x; level++);
23
-                level %= nLevels;
24
+            while(level < nLevels && tagEnd[level] > x)
25
+                level++;
26
+            
27
+            if(level == nLevels)
28
+                level = 0;
29
 
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
34
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.