ITS: fix displaying of curvature unavailable value

This commit is contained in:
Tomas Kukosa 2021-06-16 13:24:54 +02:00 committed by Wireshark GitLab Utility
parent e22b9733cf
commit 4c4bb915c8
2 changed files with 2 additions and 2 deletions

View File

@ -515,7 +515,7 @@ its_curvature_value_fmt(gchar *s, guint32 v)
gint32 curv = (gint32)v;
if (curv == 0) {
g_snprintf(s, ITEM_LABEL_LENGTH, "straight(%d)", v);
} else if (curv == 1023) {
} else if (curv == 30001) {
g_snprintf(s, ITEM_LABEL_LENGTH, "unavailable(%d)", v);
} else {
g_snprintf(s, ITEM_LABEL_LENGTH, "%.3fm %s (%d)",

View File

@ -18850,7 +18850,7 @@ its_curvature_value_fmt(gchar *s, guint32 v)
gint32 curv = (gint32)v;
if (curv == 0) {
g_snprintf(s, ITEM_LABEL_LENGTH, "straight(%d)", v);
} else if (curv == 1023) {
} else if (curv == 30001) {
g_snprintf(s, ITEM_LABEL_LENGTH, "unavailable(%d)", v);
} else {
g_snprintf(s, ITEM_LABEL_LENGTH, "%.3fm %s (%d)",