Ethereal-dev: [Ethereal-dev] Some curious code in gtk/proto_draw.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Richard Sharpe <rsharpe@xxxxxxxxxxxxxxxxx>
Date: Thu, 27 Nov 2003 00:19:03 -0800 (PST)
Hi,

I just noticed the following in proto_draw.c:packet_hex_print:

  OBJECT_SET_DATA(bv, E_BYTE_VIEW_START_KEY, GINT_TO_POINTER(bend));
  OBJECT_SET_DATA(bv, E_BYTE_VIEW_END_KEY, GINT_TO_POINTER(bstart));

Why do we store bend under E_BYTE_VIEW_START_KEY and bstart under 
E_BYTE_VIEW_END_KEY?

Regards
-----
Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, 
sharpe[at]ethereal.com, http://www.richardsharpe.com