Fixes #3644 - Line widgets weren't working correctly in custom widgets.
Now they work except for possible timing issues described in bug #3752