Making it so you can remove more points from a linear ring. p=gregers, r=me (closes #2172)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11819 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2011-03-30 23:54:54 +00:00
parent 587b2320ab
commit b8ba064ede
2 changed files with 5 additions and 5 deletions

View File

@@ -93,7 +93,7 @@ OpenLayers.Geometry.LinearRing = OpenLayers.Class(
* point - {<OpenLayers.Geometry.Point>}
*/
removeComponent: function(point) {
if (this.components.length > 4) {
if (this.components.length > 3) {
//remove last point
this.components.pop();