mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Taxonomy: Don't access empty entries when printing the tags
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
884e690049
commit
90fcfca02c
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ QString constructLocationTags(struct dive_site *ds, bool for_maintab)
|
|||
for (int i = 0; i < 3; i++) {
|
||||
if (prefs.geocoding.category[i] == TC_NONE)
|
||||
continue;
|
||||
for (int j = 0; j < TC_NR_CATEGORIES; j++) {
|
||||
for (int j = 0; j < ds->taxonomy.nr; j++) {
|
||||
if (ds->taxonomy.category[j].category == prefs.geocoding.category[i]) {
|
||||
QString tag = ds->taxonomy.category[j].value;
|
||||
if (!tag.isEmpty()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue