Display numeric fields in their base display type for columns.

Don't force display of BASE_DEC

Change-Id: Id6f115c074f0d4b1bd277dcbf6c523ffaa295edb
Reviewed-on: https://code.wireshark.org/review/20918
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Michael Mann 2017-04-04 22:05:10 -04:00 committed by Anders Broman
parent c0184059d1
commit 2eca457d52
1 changed files with 2 additions and 2 deletions

View File

@ -5384,7 +5384,7 @@ proto_custom_set(proto_tree* tree, GSList *field_ids, gint occurrence,
number_out = hf_str_val = hf_try_val_to_str(number, hfinfo);
if (!number_out)
number_out = hfinfo_number_value_format_display(hfinfo, BASE_DEC, number_buf, number);
number_out = hfinfo_number_value_format_display(hfinfo, hfinfo->display, number_buf, number);
offset_r += protoo_strlcpy(result+offset_r, number_out, size-offset_r);
}
@ -5429,7 +5429,7 @@ proto_custom_set(proto_tree* tree, GSList *field_ids, gint occurrence,
number_out = hf_str_val = hf_try_val64_to_str(number64, hfinfo);
if (!number_out)
number_out = hfinfo_number_value_format_display64(hfinfo, BASE_DEC, number_buf, number64);
number_out = hfinfo_number_value_format_display64(hfinfo, hfinfo->display, number_buf, number64);
offset_r += protoo_strlcpy(result+offset_r, number_out, size-offset_r);