Lines and Curves: fix pressure curve error

An exception was being raised when manipulating the pressure curve
in the options panel for the Lines and Curves tool.

Fixes #33.