Who ruled on the 1846 patent case?