Skip to content

Commit

Permalink
Fix a typo in usage of Export flags (#171)
Browse files Browse the repository at this point in the history
WktExportFlags.wktExportPolygon is used instead of WkbExportFlags.wkbExportPolygon. They have same value, so there is no bug yet, but it's better to fix that.
  • Loading branch information
stolstov authored Apr 20, 2018
1 parent 2407d0b commit f68c241
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ else if (wkbBuffer.capacity() < size)
if (!bExportZs && !bExportMs) {
type = WkbGeometryType.wkbPolygon;

if ((exportFlags & WktExportFlags.wktExportPolygon) == 0) {
if ((exportFlags & WkbExportFlags.wkbExportPolygon) == 0) {
wkbBuffer.put(offset, byteOrder);
offset += 1;
wkbBuffer.putInt(offset, WkbGeometryType.wkbMultiPolygon);
Expand Down

0 comments on commit f68c241

Please sign in to comment.