-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23572 from rycee/fix/gpsbabel-darwin
gpsbabel: fix darwin build
- Loading branch information
Showing
3 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/bushnell.cc b/bushnell.cc | ||
index 8fa844d..40707c4 100644 | ||
--- a/bushnell.cc | ||
+++ b/bushnell.cc | ||
@@ -135,7 +135,7 @@ bushnell_get_icon_from_name(QString name) | ||
name = "Waypoint"; | ||
} | ||
|
||
- for (t = bushnell_icons; t->icon > 0; t++) { | ||
+ for (t = bushnell_icons; t->icon != 0; t++) { | ||
if (0 == name.compare(t->icon, Qt::CaseInsensitive)) { | ||
return t->symbol; | ||
} | ||
@@ -147,7 +147,7 @@ static const char* | ||
bushnell_get_name_from_symbol(signed int s) | ||
{ | ||
icon_mapping_t* t; | ||
- for (t = bushnell_icons; t->icon > 0; t++) { | ||
+ for (t = bushnell_icons; t->icon != 0; t++) { | ||
if (s == t->symbol) { | ||
return t->icon; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters