Added some checking to put the right sample view into the generic scan editor.