An error in solve for Piecewise.
Merge pull request #1837 from placasse/solve_piecewise

An error in solve for Piecewise.