Fix for assign_function(), the spectrum_type arg is sent into it!
Authored by: bugman 2008-10-07
Parent: [r7577]
Child: [r7579]