JAL-2439 Fixed opposite out-by-one problem in wrapped panels