doc edit dialog: fix formula used to guess 4 digit years based on 2 digit years

Signed-off-by: Jerome Flesch <jflesch@gmail.com>
Doc edit dialog: pressing "return" on one of the spinbutton will validate the dialog

Signed-off-by: Jerome Flesch <jflesch@gmail.com>