Fix sash position restore for wx2.8