[fit] fix setting model degree limits when using a curve as data source

Authored by sgerlach on May 22 2020, 9:06 AM.