summaryrefslogtreecommitdiff
path: root/sql/spatial.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/spatial.cc')
-rw-r--r--sql/spatial.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/spatial.cc b/sql/spatial.cc
index 1e2b9f1c512..5c6be3c221c 100644
--- a/sql/spatial.cc
+++ b/sql/spatial.cc
@@ -506,7 +506,7 @@ int GPolygon::get_data_as_text(String *txt) const
for (; n_linear_rings>0; --n_linear_rings)
{
- if(no_data(data, 4))
+ if (no_data(data, 4))
return 1;
uint32 n_points = uint4korr(data);
data += 4;
@@ -593,7 +593,7 @@ int GPolygon::area(double *ar) const
data += (8+8);
}
lr_area=fabs(lr_area)/2;
- if(result==-1) result=lr_area;
+ if (result==-1) result=lr_area;
else result-=lr_area;
}
*ar=fabs(result);
@@ -1344,7 +1344,7 @@ int GGeometryCollection::get_mbr(MBR *mbr) const
data += 4;
for (; n_objects>0; --n_objects)
{
- if(no_data(data, WKB_HEADER_SIZE))
+ if (no_data(data, WKB_HEADER_SIZE))
return 1;
uint32 wkb_type = uint4korr(data + sizeof(char));
data += WKB_HEADER_SIZE;