[Mapbender-commits] r6546 - branches/2.6/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sat Jul 3 14:58:32 EDT 2010
Author: marc
Date: 2010-07-03 18:58:32 +0000 (Sat, 03 Jul 2010)
New Revision: 6546
Modified:
branches/2.6/http/classes/class_gml_polygon.php
Log:
http://trac.osgeo.org/mapbender/ticket/650
Modified: branches/2.6/http/classes/class_gml_polygon.php
===================================================================
--- branches/2.6/http/classes/class_gml_polygon.php 2010-07-03 18:56:49 UTC (rev 6545)
+++ branches/2.6/http/classes/class_gml_polygon.php 2010-07-03 18:58:32 UTC (rev 6546)
@@ -37,12 +37,12 @@
}
public function addPointToRing ($i, $x, $y) {
- if (count($this->innerRingArray) <= $i) {
+ if (count($this->innerRingArray) < $i) {
array_push($this->innerRingArray, array());
}
$index = count($this->innerRingArray);
$currentIndex = ($i < $index ? $i : $index);
- array_push($this->innerRingArray[$currentIndex], array("x" => $x, "y" => $y));
+ array_push($this->innerRingArray[$currentIndex-1], array("x" => $x, "y" => $y));
}
public function toGml2 () {
More information about the Mapbender_commits
mailing list