Fixed bug in is_in_latlon().

If some of lon1,lon2,lont were negative and the others positive, comparison went wrong.