epan: Show a check mark in custom columns for FT_NONE types
This is valuable when adding a expert info field as custom column, but will also make sense for other FT_NONE types. Change-Id: Ib1a14c59a5450f2e713f190aecf3484586d116c4 Reviewed-on: https://code.wireshark.org/review/24787 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
This commit is contained in:
parent
2c36df54a3
commit
e4750105b2
|
@ -5725,14 +5725,7 @@ proto_custom_set(proto_tree* tree, GSList *field_ids, gint occurrence,
|
|||
|
||||
switch (hfinfo->type) {
|
||||
|
||||
case FT_NONE: /* Nothing to add */
|
||||
if (offset_r == 0) {
|
||||
result[0] = '\0';
|
||||
} else if (result[offset_r-1] == ',') {
|
||||
result[offset_r-1] = '\0';
|
||||
}
|
||||
break;
|
||||
|
||||
case FT_NONE:
|
||||
case FT_PROTOCOL:
|
||||
/* prevent multiple check marks by setting result directly */
|
||||
g_strlcpy(result, UTF8_CHECK_MARK, size);
|
||||
|
|
Loading…
Reference in New Issue