Fix #1308 : Editing selection does not work
Merge pull request #495 from romainneutron/fix-1308

[3.8] Fix #1308 : Editing selection does not work