Fix crash when set projection center from popup menu.
Merge from CVS HEAD.