pane: don't declare variable twice

(integrated from master branch change 0c1c96b by Todd Whiteman <toddw@activestate.com>)