null+****@clear*****
null+****@clear*****
2010年 8月 10日 (火) 09:11:40 JST
Kouhei Sutou 2010-08-10 00:11:40 +0000 (Tue, 10 Aug 2010) New Revision: 3068a24c0573697a885b18cab38abf518f498a20 Log: geo_in_rectangle() follows document behavior. #414 Modified files: lib/geo.c Modified: lib/geo.c (+1 -1) =================================================================== --- lib/geo.c 2010-08-09 13:15:08 +0000 (030f03b) +++ lib/geo.c 2010-08-10 00:11:40 +0000 (0d2b81c) @@ -633,7 +633,7 @@ grn_geo_in_rectangle(grn_ctx *ctx, grn_obj *point, GRN_GEO_POINT_VALUE(top_left, lat1, lng1); GRN_GEO_POINT_VALUE(bottom_right, lat2, lng2); r = ((lng1 <= lng0) && (lng0 <= lng2) && - (lat1 <= lat0) && (lat0 <= lat2)); + (lat2 <= lat0) && (lat0 <= lat1)); } else { /* todo */ }