How do I undo "Center On Children"

I clicked "GameObject->Center On Children" to see what it did, and now the origin of my transform is no longer where I expect it to be. How do I get the center to be on the parent again?

Actually this could be a bug, because I guess it's impossible since the normal `undo` does nothing for this action.