Fix how index is calculated for hiding columns during apply state.
Authored by: b_calderwood 2011-10-21
Parent: [r5628]
Child: [r5630]