x11 generator: Don't crash when a switch is in a struct
authorPeter Harris <pharris@opentext.com>
Sat, 17 Oct 2015 00:57:34 +0000 (20:57 -0400)
committerJeff Morriss <jeff.morriss.ws@gmail.com>
Mon, 19 Oct 2015 14:52:21 +0000 (14:52 +0000)
commit4ff02903a65dc9dcc8bd97613e46a6736cda46a1
tree1aabed979f3f03367f75b7fc4a1af194b30397fd
parent0f2eb385f0b920cb4117189b9d13e88ae22787eb
x11 generator: Don't crash when a switch is in a struct

The size calculation for the struct will be wrong (too small) which looks
strange in the GUI when the children elements extend past the region
marked by their parent. But it doesn't seem to cause any actual problems,
there is only one request affected by this, and correct size calculation
(by recursing the switch) would take a fair amount of work.

Change-Id: I1847f736153daf59b8dbf3299005a772ffe9673a
Reviewed-on: https://code.wireshark.org/review/11107
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
tools/process-x11-xcb.pl